Skip to contentSkip to conversation

assoc_array: remove global variable

PATCH Applied Stephen Hemminger 2 participants 2 messages Dec 30, 2013 – Jan 2, 2014 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 assoc_array: remove global variable

The associative array code creates unnecessary and potentially problematic global variable 'status'. Remove it since never used.

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 {