Skip to contentSkip to conversation

+ lib-assoc_arrayc-remove-global-variable.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jan 2, 2014 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + lib-assoc_arrayc-remove-global-variable.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 02 Jan 2014 15:18:55 -0800

The patch titled
Subject: lib/assoc_array.c: remove global variable
has been added to the -mm tree. Its filename is
lib-assoc_arrayc-remove-global-variable.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/lib-assoc_arrayc-remove-global-variable.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/lib-assoc_arrayc-remove-global-variable.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Stephen Hemminger <[email protected]>
Subject: 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.

---

 lib/assoc_array.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/assoc_array.c renamed from lib/assoc_array.c~lib-assoc_arrayc-remove-global-variable +1 -1
diff -puN lib/assoc_array.c~lib-assoc_arrayc-remove-global-variable 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 {

_

Patches currently in -mm which might be from [email protected] are

lib-assoc_arrayc-remove-global-variable.patch
linux-next.patch