summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <shemming@brocade.com>2014-01-10 12:41:45 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2014-01-10 12:41:45 +1100
commit55cbfd15fd125aad68b9a958749ae2d3c192db9c (patch)
treea10c6449ec08a42463892ec490418d1c9292324f /lib
parentd0019ffea5c0bb1453853d61064c9ac0c4fc311a (diff)
lib/assoc_array.c: remove global variable
The associative array code creates unnecessary and potentially problematic global variable 'status'. Remove it since it is never used. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/assoc_array.c2
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 {
assoc_array_walk_tree_empty,
assoc_array_walk_found_terminal_node,
assoc_array_walk_found_wrong_shortcut,
-} status;
+};
struct assoc_array_walk_result {
struct {