projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee7a81
)
assoc_array: remove global variable
author
Stephen Hemminger
<shemming@brocade.com>
Thu, 23 Jan 2014 13:24:09 +0000
(13:24 +0000)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 23 Jan 2014 17:25:10 +0000
(09:25 -0800)
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>
lib/assoc_array.c
patch
|
blob
|
history
diff --git
a/lib/assoc_array.c
b/lib/assoc_array.c
index 1b6a44f1ec3e3b10f3b02d19f8ab0ce59453f6d5..c0b1007011e188836616509deef5876c207d32d4 100644
(file)
--- 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 {