mesh: Cleanup storage save and remove procedures
authorInga Stotland <inga.stotland@intel.com>
Fri, 22 Feb 2019 06:31:47 +0000 (22:31 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 14:15:10 +0000 (19:45 +0530)
commit51b13ec9a5603a5e51a23be5272b548ca3506a7f
treedc02bc11b9d580bfaae6103e37257d34ce80471b
parentf5aec62bcca50201a8f95bbc531e27c7a765e464
mesh: Cleanup storage save and remove procedures

To remove a node config directory completely, the directory
needs to be empty. Both node.json and node,json.bak files must
are deleted.

Also, change storage_save_config() type to void to eliminate
meaningless checks.

Change-Id: Idacf96ed74e8b4818dea061efbe242107df8cdac
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/node.c
mesh/node.h
mesh/storage.c
mesh/storage.h