[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131230152010.2d26d75b@nehalam.linuxnetplumber.net>
Date: Mon, 30 Dec 2013 15:20:10 -0800
From: Stephen Hemminger <shemming@...cade.com>
To: David Howells <dhowells@...hat.com>
CC: <linux-kernel@...r.kernel.org>, <keyrings@...ux-nfs.org>
Subject: [PATCH] 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@...workplumber.org>
--- a/lib/assoc_array.c 2013-12-20 07:59:47.468147094 -0800
+++ b/lib/assoc_array.c 2013-12-30 15:14:38.034880698 -0800
@@ -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 {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists