mesh: Remove unused timing variable tx_start
PATCH 1/1 mesh: Remove unused timing variable tx_start
In model.c, tx_Start is a static variable, dynamically set, but never used. Is removed now.
--- mesh/model.c | 6 ------ 1 file changed, 6 deletions(-)
mesh/model.c +0 -6
@@ -80,8 +80,6 @@ struct mod_forward {static struct l_queue *mesh_virtuals; -static struct timeval tx_start; -static bool is_internal (uint32_t id) {if (id ==CONFIG_SRV_MODEL || id ==CONFIG_CLI_MODEL )
@@ -1018,8 +1016,6 @@ int mesh_model_publish(struct mesh_node *node, uint32_t id, uint16_t src,return MESH_ERROR_DOES_NOT_EXIST ; } -gettimeofday (&tx_start,NULL ); -if (IS_UNASSIGNED (mod->pub->addr))return MESH_ERROR_DOES_NOT_EXIST ;
@@ -1049,8 +1045,6 @@ bool mesh_model_send(struct mesh_node *node, uint16_t src, uint16_t dst,if (src ==0 ) src =node_get_primary (node); -gettimeofday (&tx_start,NULL ); -if (IS_UNASSIGNED (dst))return false;
Signature · 1 line
2.26.2
Gix, Brian
AppliedApplied
Quoted 37 lines · Inga Stotland
In
model.c,tx_Startis a static variable, dynamically set, but never used. Is removed now.--- mesh/model.c | 6 ------ 1 file changed, 6 deletions(-)mesh/model.c +0
-6@@ -80,8 +80,6 @@ struct mod_forward {static struct l_queue *mesh_virtuals; -static struct timeval tx_start; -static bool is_internal (uint32_t id) {if (id ==CONFIG_SRV_MODEL || id ==CONFIG_CLI_MODEL )@@ -1018,8 +1016,6 @@ int mesh_model_publish(struct mesh_node *node, uint32_t id, uint16_t src,return MESH_ERROR_DOES_NOT_EXIST ; } -gettimeofday (&tx_start,NULL ); -if (IS_UNASSIGNED (mod->pub->addr))return MESH_ERROR_DOES_NOT_EXIST ;@@ -1049,8 +1045,6 @@ bool mesh_model_send(struct mesh_node *node, uint16_t src, uint16_t dst,if (src ==0 ) src =node_get_primary (node); -gettimeofday (&tx_start,NULL ); -if (IS_UNASSIGNED (dst))return false;