mesh: Remove unused structure member 13/235113/1
authorInga Stotland <inga.stotland@intel.com>
Fri, 22 May 2020 00:34:52 +0000 (17:34 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Thu, 28 May 2020 11:27:22 +0000 (16:57 +0530)
This removes unused "agent" member from join_data structure.

Change-Id: I58446ca4058a394f3f1a0b4fac6f01be0c0cb3d0
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/mesh.c

index 20c7c94..fec472c 100644 (file)
@@ -71,7 +71,6 @@ struct bt_mesh {
 
 struct join_data{
        struct l_dbus_message *msg;
-       struct mesh_agent *agent;
        char *sender;
        struct mesh_node *node;
        uint32_t disc_watch;
@@ -318,8 +317,6 @@ static void free_pending_join_call(bool failed)
                l_dbus_remove_watch(dbus_get_bus(),
                                                join_pending->disc_watch);
 
-       mesh_agent_remove(join_pending->agent);
-
        if (failed)
                node_remove(join_pending->node);