diff mbox series

[2/2,v2,BlueZ] mesh: Remove duplicated initialization

Message ID 66cee0c3.170a0220.a7c52.44a7@mx.google.com (mailing list archive)
State New, archived
Headers show
Series [1/2,v2,BlueZ] mesh: Add provisioning algorithms config | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

Junho Lee Aug. 28, 2024, 8:33 a.m. UTC
This removes duplicate initialization code, as ProvTimeout and
Algorithms are already initialized when the data structure is created.

Signed-off-by: Junho Lee <tot0roprog@gmail.com>
---
 mesh/mesh.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/mesh/mesh.c b/mesh/mesh.c
index 7b670e40a..49d252e5e 100644
--- a/mesh/mesh.c
+++ b/mesh/mesh.c
@@ -266,9 +266,6 @@  bool mesh_init(const char *config_dir, const char *mesh_conf_fname,
 	mesh_model_init();
 	mesh_agent_init();
 
-	mesh.prov_timeout = DEFAULT_PROV_TIMEOUT;
-	mesh.algorithms = DEFAULT_ALGORITHMS;
-
 	storage_dir = config_dir ? config_dir : MESH_STORAGEDIR;
 
 	l_info("Loading node configuration from %s", storage_dir);