diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-26 17:22:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 19:52:10 -0400 |
commit | 170168d0a351c045adc0bee0987e51dfc82890c0 (patch) | |
tree | e986de7fff1dd6258038e8f205190f49d6d7698c /mm | |
parent | e574b5fd20027b422aa80790f710d695699b4fba (diff) |
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: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmalloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 9f909622a25e..55c7a47391f6 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -293,13 +293,13 @@ static void __insert_vmap_area(struct vmap_area *va) | |||
293 | struct rb_node *tmp; | 293 | struct rb_node *tmp; |
294 | 294 | ||
295 | while (*p) { | 295 | while (*p) { |
296 | struct vmap_area *tmp; | 296 | struct vmap_area *tmp_va; |
297 | 297 | ||
298 | parent = *p; | 298 | parent = *p; |
299 | tmp = rb_entry(parent, struct vmap_area, rb_node); | 299 | tmp_va = rb_entry(parent, struct vmap_area, rb_node); |
300 | if (va->va_start < tmp->va_end) | 300 | if (va->va_start < tmp_va->va_end) |
301 | p = &(*p)->rb_left; | 301 | p = &(*p)->rb_left; |
302 | else if (va->va_end > tmp->va_start) | 302 | else if (va->va_end > tmp_va->va_start) |
303 | p = &(*p)->rb_right; | 303 | p = &(*p)->rb_right; |
304 | else | 304 | else |
305 | BUG(); | 305 | BUG(); |