Skip to contentSkip to conversation

mesh: Remove duplicated initialization

PATCH In review Junho Lee 1 participant 1 message Aug 28, 2024 Bluetooth drivers

lore
Share & tools
lore

Junho Lee

author
#0 lore raw

PATCH v2 2/2 mesh: Remove duplicated initialization

This removes duplicate initialization code, as ProvTimeout and Algorithms are already initialized when the data structure is created.

---
 mesh/mesh.c | 3 ---
 1 file changed, 3 deletions(-)
mesh/mesh.c +0 -3
index 7b670e40a..49d252e5e 100644
@@ -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);
Signature · 1 line
2.34.1