Commit 170168d0 authored by Namhyung Kim's avatar Namhyung Kim Committed by Linus Torvalds

vmalloc: rename temporary variable in __insert_vmap_area()

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: default avatarNamhyung Kim <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent e574b5fd
...@@ -293,13 +293,13 @@ static void __insert_vmap_area(struct vmap_area *va) ...@@ -293,13 +293,13 @@ static void __insert_vmap_area(struct vmap_area *va)
struct rb_node *tmp; struct rb_node *tmp;
while (*p) { while (*p) {
struct vmap_area *tmp; struct vmap_area *tmp_va;
parent = *p; parent = *p;
tmp = rb_entry(parent, struct vmap_area, rb_node); tmp_va = rb_entry(parent, struct vmap_area, rb_node);
if (va->va_start < tmp->va_end) if (va->va_start < tmp_va->va_end)
p = &(*p)->rb_left; 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; p = &(*p)->rb_right;
else else
BUG(); BUG();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment