aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/imalloc.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2005-12-16 22:45:27 +0100
committerPaul Mackerras <paulus@samba.org>2006-01-09 15:14:14 +1100
commit021c73354921a315ae2fceb1ad7807d1569a5a74 (patch)
tree35451e7108516ed2746a75a230381d7ab44abcc9 /arch/powerpc/mm/imalloc.c
parent42650d8c9060a2658a79d4e30a5790b23d7753e0 (diff)
[PATCH] powerpc: fix two build warnings
Building the arch/powerpc tree currently gives me two warnings with gcc-4.0: arch/powerpc/mm/imalloc.c: In function '__im_get_area': arch/powerpc/mm/imalloc.c:225: warning: 'tmp' may be used uninitialized in this function arch/powerpc/mm/hugetlbpage.c: In function 'hugetlb_get_unmapped_area': arch/powerpc/mm/hugetlbpage.c:608: warning: unused variable 'vma' both fixes are trivial. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/imalloc.c')
-rw-r--r--arch/powerpc/mm/imalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/imalloc.c b/arch/powerpc/mm/imalloc.c
index f9587bcc6a4..8b0c132bc16 100644
--- a/arch/powerpc/mm/imalloc.c
+++ b/arch/powerpc/mm/imalloc.c
@@ -107,6 +107,7 @@ static int im_region_status(unsigned long v_addr, unsigned long size,
if (v_addr < (unsigned long) tmp->addr + tmp->size)
break;
+ *vm = NULL;
if (tmp) {
if (im_region_overlaps(v_addr, size, tmp))
return IM_REGION_OVERLAP;
@@ -127,7 +128,6 @@ static int im_region_status(unsigned long v_addr, unsigned long size,
}
}
- *vm = NULL;
return IM_REGION_UNUSED;
}