Skip to content

Commit

Permalink
mm/kmemleak.c: remove unneeded initialization of object to NULL
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Alexey Klimov authored and torvalds committed Nov 6, 2015
1 parent d4322d8 commit 9fbed25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fbed25

Please sign in to comment.