summaryrefslogtreecommitdiff
path: root/mesh
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-09-03 12:02:05 -0700
committerBrian Gix <brian.gix@intel.com>2020-09-03 13:21:09 -0700
commitb6b5142239b584c836b448bb73e2b705734f70b1 (patch)
tree9d4b604682c0d7843d828a95489332d39cbafffd /mesh
parentc24db50c4368dfd1ea868cbc9f9976a99a365068 (diff)
downloadbluez-b6b5142239b584c836b448bb73e2b705734f70b1.tar.gz
mesh: Remove unused timing variable tx_start
In model.c, tx_Start is a static variable, dynamically set, but never used. Is removed now.
Diffstat (limited to 'mesh')
-rw-r--r--mesh/model.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/mesh/model.c b/mesh/model.c
index ed2a75215..5716f5e22 100644
--- a/mesh/model.c
+++ b/mesh/model.c
@@ -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;