mesh: Clean up node.c
authorInga Stotland <inga.stotland@intel.com>
Fri, 6 Dec 2019 20:57:48 +0000 (12:57 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Wed, 18 Dec 2019 11:49:13 +0000 (17:19 +0530)
commit0eeadc96e163ca8dd5babc296590bb95438ea51a
treee670df63cf81aad7734a9e5ed911a91de6df7883
parentfb2426d71c4fa32dc50ce29d1ca278d9484451e9
mesh: Clean up node.c

This change makes the node initialization a bit easier to follow.
Replace if-else with switch when processing request type, descriptive
function names, more predictable code flow.

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