* [PATCH BlueZ] mesh: Remove redundant initialization
@ 2019-07-04 7:15 Inga Stotland
2019-07-04 17:57 ` Gix, Brian
0 siblings, 1 reply; 2+ messages in thread
From: Inga Stotland @ 2019-07-04 7:15 UTC (permalink / raw)
To: linux-bluetooth; +Cc: brian.gix, Inga Stotland
This fixes a case where a variable was initialized twice.
---
mesh/cfgmod-server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c
index 634ac006b..bb78cead6 100644
--- a/mesh/cfgmod-server.c
+++ b/mesh/cfgmod-server.c
@@ -742,7 +742,7 @@ static bool cfg_srv_pkt(uint16_t src, uint32_t dst,
uint8_t ttl, const void *user_data)
{
struct mesh_node *node = (struct mesh_node *) user_data;
- struct mesh_net *net = node_get_net(node);
+ struct mesh_net *net;
const uint8_t *pkt = data;
struct timeval time_now;
uint32_t opcode, tmp32;
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH BlueZ] mesh: Remove redundant initialization
2019-07-04 7:15 [PATCH BlueZ] mesh: Remove redundant initialization Inga Stotland
@ 2019-07-04 17:57 ` Gix, Brian
0 siblings, 0 replies; 2+ messages in thread
From: Gix, Brian @ 2019-07-04 17:57 UTC (permalink / raw)
To: linux-bluetooth, Stotland, Inga
Applied
On Thu, 2019-07-04 at 00:15 -0700, Inga Stotland wrote:
> This fixes a case where a variable was initialized twice.
> ---
> mesh/cfgmod-server.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c
> index 634ac006b..bb78cead6 100644
> --- a/mesh/cfgmod-server.c
> +++ b/mesh/cfgmod-server.c
> @@ -742,7 +742,7 @@ static bool cfg_srv_pkt(uint16_t src, uint32_t
> dst,
> uint8_t ttl, const void *user_data)
> {
> struct mesh_node *node = (struct mesh_node *) user_data;
> - struct mesh_net *net = node_get_net(node);
> + struct mesh_net *net;
> const uint8_t *pkt = data;
> struct timeval time_now;
> uint32_t opcode, tmp32;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-04 17:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04 7:15 [PATCH BlueZ] mesh: Remove redundant initialization Inga Stotland
2019-07-04 17:57 ` Gix, Brian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).