]> Git Repo - linux.git/commitdiff
mm/kmemleak.c: remove unneeded initialization of object to NULL
authorAlexey Klimov <[email protected]>
Fri, 6 Nov 2015 02:45:57 +0000 (18:45 -0800)
committerLinus Torvalds <[email protected]>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
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 <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/kmemleak.c

index 77191eccdc6f6c372e84e2f49750f7f95e56c324..19423a45d7d7d96de3b403c60806d14b37788331 100644 (file)
@@ -479,7 +479,7 @@ static void put_object(struct kmemleak_object *object)
 static struct kmemleak_object *find_and_get_object(unsigned long ptr, int alias)
 {
        unsigned long flags;
-       struct kmemleak_object *object = NULL;
+       struct kmemleak_object *object;
 
        rcu_read_lock();
        read_lock_irqsave(&kmemleak_lock, flags);
This page took 0.056669 seconds and 4 git commands to generate.