slub: Remove unnecessary page NULL check
authorLibin <huawei.libin@huawei.com>
Thu, 18 Jul 2013 07:39:51 +0000 (15:39 +0800)
committerPekka Enberg <penberg@kernel.org>
Tue, 13 Aug 2013 06:21:46 +0000 (09:21 +0300)
In commit 4d7868e6(slub: Do not dereference NULL pointer in node_match)
had added check for page NULL in node_match.  Thus, it is not needed
to check it before node_match, remove it.

Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Libin <huawei.libin@huawei.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c

index d51f75d..65f43be 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2386,7 +2386,7 @@ redo:
 
        object = c->freelist;
        page = c->page;
-       if (unlikely(!object || !page || !node_match(page, node)))
+       if (unlikely(!object || !node_match(page, node)))
                object = __slab_alloc(s, gfpflags, node, addr, c);
 
        else {