From ac6434e6b804845290e4de06210fe110674140e6 Mon Sep 17 00:00:00 2001 From: Libin Date: Thu, 18 Jul 2013 15:39:51 +0800 Subject: slub: Remove unnecessary page NULL check 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 Signed-off-by: Libin Signed-off-by: Pekka Enberg --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/slub.c b/mm/slub.c index d51f75d..65f43be 100644 --- 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 { -- cgit v1.1