diff options
author | Stephen Hemminger <shemming@brocade.com> | 2014-01-23 08:24:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 12:25:10 -0500 |
commit | 30b02c4b2a1eb6b6ca83e31c6b65f63076a03c5b (patch) | |
tree | 6711888b5bdccecf0b2160227b0e5f859b4b8e4a | |
parent | 5ee7a81a9fd9f663acdd7ecf6c395bcfc014b98f (diff) |
assoc_array: remove global variable
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>
-rw-r--r-- | lib/assoc_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/assoc_array.c b/lib/assoc_array.c index 1b6a44f1ec3e..c0b1007011e1 100644 --- a/lib/assoc_array.c +++ b/lib/assoc_array.c | |||
@@ -157,7 +157,7 @@ enum assoc_array_walk_status { | |||
157 | assoc_array_walk_tree_empty, | 157 | assoc_array_walk_tree_empty, |
158 | assoc_array_walk_found_terminal_node, | 158 | assoc_array_walk_found_terminal_node, |
159 | assoc_array_walk_found_wrong_shortcut, | 159 | assoc_array_walk_found_wrong_shortcut, |
160 | } status; | 160 | }; |
161 | 161 | ||
162 | struct assoc_array_walk_result { | 162 | struct assoc_array_walk_result { |
163 | struct { | 163 | struct { |