mesh: Fix logic in AppKey deletion 23/222923/1
authorInga Stotland <inga.stotland@intel.com>
Fri, 10 Jan 2020 01:41:44 +0000 (17:41 -0800)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 20 Jan 2020 05:29:50 +0000 (10:59 +0530)
commit826cba5a5b112ace19a19af6054f109bb6fe41f8
treeca906671b35a43d7a474d7a0200eba370dfb9ec2
parent8d01eedf9091b0266dfb3c6948a6f135c5a6d69a
mesh: Fix logic in AppKey deletion

When deleting an AppKey from a node, call mesh_config_app_key_del()
only from appkey level (i.e., keep it contained in appkey.c and
remove the duplicate call in node.c)

Also, simplify the node_app_key_delete() argument list.

Change-Id: I9f04abdaeeae2e791b02afafec565d1fcbbb6931
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/appkey.c
mesh/node.c
mesh/node.h