[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <BD79186B4FD85F4B8E60E381CAEE1909015F9239@mi8nycmail19.Mi8.com>
Date: Fri, 17 Apr 2009 20:55:06 -0400
From: "H Hartley Sweeten" <hartleys@...ionengravers.com>
To: <linux-kernel@...r.kernel.org>
Subject: [PATCH] mm/vmalloc.c: fix sparse warning
Fix sparse warning in mm/vmalloc.c.
warning: symbol 'tmp' shadows an earlier one
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
---
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index fab1987..4959a30 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -292,13 +292,13 @@ static void __insert_vmap_area(struct vmap_area
*va)
struct rb_node *tmp;
while (*p) {
- struct vmap_area *tmp;
+ struct vmap_area *tmp_va;
parent = *p;
- tmp = rb_entry(parent, struct vmap_area, rb_node);
- if (va->va_start < tmp->va_end)
+ tmp_va = rb_entry(parent, struct vmap_area, rb_node);
+ if (va->va_start < tmp_va->va_end)
p = &(*p)->rb_left;
- else if (va->va_end > tmp->va_start)
+ else if (va->va_end > tmp_va->va_start)
p = &(*p)->rb_right;
else
BUG();
--
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