assoc_array: remove global variable
PATCH 1/1 assoc_array: remove global variable
From: Stephen Hemminger <[email protected]>
The associative array code creates unnecessary and potentially problematic global variable 'status'. Remove it since never used.
Signed-off-by Stephen Hemminger <[email protected]>
Signed-off-by David Howells <[email protected]>
---
lib/assoc_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/assoc_array.c +1 -1
@@ -157,7 +157,7 @@ enum assoc_array_walk_status { assoc_array_walk_tree_empty, assoc_array_walk_found_terminal_node, assoc_array_walk_found_wrong_shortcut, -} status; +}; struct assoc_array_walk_result { struct {