mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
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 <cl@linux.com> Signed-off-by: Libin <huawei.libin@huawei.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
parent
b39ffbf8b1
commit
ac6434e6b8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user