Skip to content

Commit

Permalink
assoc_array: remove global variable
Browse files Browse the repository at this point in the history
The associative array code creates unnecessary and potentially
problematic global variable 'status'.  Remove it since never used.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Stephen Hemminger authored and Linus Torvalds committed Jan 23, 2014
1 parent 5ee7a81 commit 30b02c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assoc_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 30b02c4

Please sign in to comment.