summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/numa.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-03-24 11:34:46 +0100
committerPaul Mackerras <paulus@samba.org>2006-03-27 05:48:34 +0200
commit069007ae07ab9286fbe42e9a66b78e184f752a05 (patch)
tree827f084167c9080e88b0555a37f2c5a9839a82cd /arch/powerpc/mm/numa.c
parent[PATCH] correct the comment about stackpointer alignment in __boot_from_prom (diff)
downloadlinux-069007ae07ab9286fbe42e9a66b78e184f752a05.tar.xz
linux-069007ae07ab9286fbe42e9a66b78e184f752a05.zip
[PATCH] powerpc: hot_add_scn_to_nid() build fix
The return statement is to prevent `warning: 'nid' might be used uninitialized in this function'. Cc: Nathan Lynch <nathanl@austin.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to '')
-rw-r--r--arch/powerpc/mm/numa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index e89b22aa539e..0a335f34974c 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -756,6 +756,7 @@ int hot_add_scn_to_nid(unsigned long scn_addr)
struct device_node *memory = NULL;
nodemask_t nodes;
int default_nid = any_online_node(NODE_MASK_ALL);
+ int nid;
if (!numa_enabled || (min_common_depth < 0))
return default_nid;
@@ -790,6 +791,7 @@ ha_new_range:
goto ha_new_range;
}
BUG(); /* section address should be found above */
+ return 0;
/* Temporary code to ensure that returned node is not empty */
got_nid: