Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] mesh: Remove unused timing variable tx_start
@ 2020-09-03 19:02 Inga Stotland
  2020-09-03 20:27 ` Gix, Brian
  0 siblings, 1 reply; 2+ messages in thread
From: Inga Stotland @ 2020-09-03 19:02 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: brian.gix, Inga Stotland

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(-)

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;
 
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH BlueZ] mesh: Remove unused timing variable tx_start
  2020-09-03 19:02 [PATCH BlueZ] mesh: Remove unused timing variable tx_start Inga Stotland
@ 2020-09-03 20:27 ` Gix, Brian
  0 siblings, 0 replies; 2+ messages in thread
From: Gix, Brian @ 2020-09-03 20:27 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org, Stotland, Inga

Applied
On Thu, 2020-09-03 at 12:02 -0700, Inga Stotland wrote:
> 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(-)
> 
> 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;
>  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-03 20:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-03 19:02 [PATCH BlueZ] mesh: Remove unused timing variable tx_start Inga Stotland
2020-09-03 20:27 ` Gix, Brian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox