aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Klimov <alexey.klimov@linaro.org>2015-11-05 21:45:57 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 22:34:48 -0500
commit9fbed25407ccc87a7bb47ea3f411e1ca34a95f8b (patch)
tree744ddfa22a013824edf451d2fb342284d0c20490
parentd4322d88f5fdf92729dd40f923013414fbb2184d (diff)
mm/kmemleak.c: remove unneeded initialization of object to NULL
Few lines below object is reinitialized by lookup_object() so we don't need to init it by NULL in the beginning of find_and_get_object(). Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--mm/kmemleak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index 77191eccdc6f..19423a45d7d7 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -479,7 +479,7 @@ static void put_object(struct kmemleak_object *object)
479static struct kmemleak_object *find_and_get_object(unsigned long ptr, int alias) 479static struct kmemleak_object *find_and_get_object(unsigned long ptr, int alias)
480{ 480{
481 unsigned long flags; 481 unsigned long flags;
482 struct kmemleak_object *object = NULL; 482 struct kmemleak_object *object;
483 483
484 rcu_read_lock(); 484 rcu_read_lock();
485 read_lock_irqsave(&kmemleak_lock, flags); 485 read_lock_irqsave(&kmemleak_lock, flags);