mesh: Remove redundant initialization
authorInga Stotland <inga.stotland@intel.com>
Thu, 4 Jul 2019 07:15:16 +0000 (00:15 -0700)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 15:21:01 +0000 (20:51 +0530)
This fixes a case where a variable was initialized twice.

Change-Id: I14b10105095304d93c25d067ad435fceed79835f
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/cfgmod-server.c

index 634ac00..bb78cea 100644 (file)
@@ -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;