Skip to contentSkip to conversation

mesh: Remove redundant initialization

PATCH Applied Inga Stotland 2 participants 2 messages Jul 4, 2019 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesh: Remove redundant initialization

This fixes a case where a variable was initialized twice.

---
 mesh/cfgmod-server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mesh/cfgmod-server.c +1 -1
index 634ac006b..bb78cead6 100644
@@ -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;
Signature · 1 line
2.21.0
Applied
#1 lore raw

Applied

Quoted 19 lines · Inga Stotland

This fixes a case where a variable was initialized twice.

---
 mesh/cfgmod-server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mesh/cfgmod-server.c +1 -1
index 634ac006b..bb78cead6 100644
@@ -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;