The patch titled Subject: mm/kmemleak.c: remove unneeded initialization of object to NULL has been added to the -mm tree. Its filename is mm-kmemleak-remove-unneeded-initialization-of-object-to-null.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-kmemleak-remove-unneeded-initialization-of-object-to-null.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-kmemleak-remove-unneeded-initialization-of-object-to-null.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexey Klimov <alexey.klimov@xxxxxxxxxx> Subject: 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@xxxxxxxxxx> Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/kmemleak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/kmemleak.c~mm-kmemleak-remove-unneeded-initialization-of-object-to-null mm/kmemleak.c --- a/mm/kmemleak.c~mm-kmemleak-remove-unneeded-initialization-of-object-to-null +++ a/mm/kmemleak.c @@ -479,7 +479,7 @@ static void put_object(struct kmemleak_o 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); _ Patches currently in -mm which might be from alexey.klimov@xxxxxxxxxx are mm-kmemleak-remove-unneeded-initialization-of-object-to-null.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html