Skip to content

Commit

Permalink
vmalloc: rename temporary variable in __insert_vmap_area()
Browse files Browse the repository at this point in the history
Rename redundant 'tmp' to fix following sparse warnings:

 mm/vmalloc.c:296:34: warning: symbol 'tmp' shadows an earlier one
 mm/vmalloc.c:293:24: originally declared here

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed Oct 26, 2010
1 parent e574b5f commit 170168d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mm/vmalloc.c
Original file line number Diff line number Diff line change
@@ -293,13 +293,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();

0 comments on commit 170168d

Please sign in to comment.