public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/sunrpc/svc.c: fix sparse warning
@ 2009-04-15 19:46 H Hartley Sweeten
  2009-04-15 20:49 ` Jesper Juhl
  2009-04-16 19:06 ` J. Bruce Fields
  0 siblings, 2 replies; 10+ messages in thread
From: H Hartley Sweeten @ 2009-04-15 19:46 UTC (permalink / raw)
  To: linux-kernel

Fix sparse warning in net/sunrpc/svc.c.

	warning: symbol 'node' shadows an earlier one

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

---

diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index 8847add..e781135 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -122,7 +122,7 @@ module_param_call(pool_mode, param_set_pool_mode,
param_get_pool_mode,
 static int
 svc_pool_map_choose_mode(void)
 {
-	unsigned int node;
+	unsigned int nid;
 
 	if (num_online_nodes() > 1) {
 		/*
@@ -132,8 +132,8 @@ svc_pool_map_choose_mode(void)
 		return SVC_POOL_PERNODE;
 	}
 
-	node = any_online_node(node_online_map);
-	if (nr_cpus_node(node) > 2) {
+	nid = any_online_node(node_online_map);
+	if (nr_cpus_node(nid) > 2) {
 		/*
 		 * Non-trivial SMP, or CONFIG_NUMA on
 		 * non-NUMA hardware, e.g. with a generic 

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-05-14 19:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15 19:46 [PATCH] net/sunrpc/svc.c: fix sparse warning H Hartley Sweeten
2009-04-15 20:49 ` Jesper Juhl
2009-04-15 22:27   ` H Hartley Sweeten
2009-04-16 19:06 ` J. Bruce Fields
2009-04-16 19:15   ` H Hartley Sweeten
2009-05-11 23:05     ` J. Bruce Fields
2009-05-14 15:58       ` H Hartley Sweeten
2009-05-14 16:00         ` J. Bruce Fields
2009-05-14 17:25           ` H Hartley Sweeten
2009-05-14 19:02             ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox