summaryrefslogtreecommitdiff
path: root/mesh/node.c
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-05-08 17:00:24 -0700
committerBrian Gix <brian.gix@intel.com>2020-05-14 09:12:56 -0700
commita51871bd73cfd58e71d5eb179aad06528ed7256a (patch)
tree2250128da3d26a1d4c8decf228007b712f7ae4e8 /mesh/node.c
parent8a382262125787caf38a1f800ec8956a1bf71d85 (diff)
downloadbluez-a51871bd73cfd58e71d5eb179aad06528ed7256a.tar.gz
mesh: Remove redundant call to save node configuration
This removes a redundant call to save node configuration in add_local_node(): there is a number of unconditional calls to mesh_config_write_<some_node_Setting>() within this function which would result in the node configuration being saved implicitly.
Diffstat (limited to 'mesh/node.c')
-rw-r--r--mesh/node.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mesh/node.c b/mesh/node.c
index a96c0cae1..8914b639d 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -1366,8 +1366,6 @@ static bool add_local_node(struct mesh_node *node, uint16_t unicast, bool kr,
update_net_settings(node);
- mesh_config_save(node->cfg, true, NULL, NULL);
-
/* Initialize configuration server model */
cfgmod_server_init(node, PRIMARY_ELE_IDX);