Skip to content

Commit

Permalink
slub: Remove unnecessary page NULL check
Browse files Browse the repository at this point in the history
In commit 4d7868e(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>
  • Loading branch information
Libin authored and Pekka Enberg committed Aug 13, 2013
1 parent b39ffbf commit ac6434e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2386,7 +2386,7 @@ static __always_inline void *slab_alloc_node(struct kmem_cache *s,

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 {
Expand Down

0 comments on commit ac6434e

Please sign in to comment.