diff options
author | Libin <huawei.libin@huawei.com> | 2013-07-18 03:39:51 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-08-13 02:21:46 -0400 |
commit | ac6434e6b804845290e4de06210fe110674140e6 (patch) | |
tree | 9a1f1ad36116903003e6d4ed8e2ebee972ccc73e /mm/slub.c | |
parent | b39ffbf8b14de2e7c1679462313cf32abb7ef463 (diff) |
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>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2386,7 +2386,7 @@ redo: | |||
2386 | 2386 | ||
2387 | object = c->freelist; | 2387 | object = c->freelist; |
2388 | page = c->page; | 2388 | page = c->page; |
2389 | if (unlikely(!object || !page || !node_match(page, node))) | 2389 | if (unlikely(!object || !node_match(page, node))) |
2390 | object = __slab_alloc(s, gfpflags, node, addr, c); | 2390 | object = __slab_alloc(s, gfpflags, node, addr, c); |
2391 | 2391 | ||
2392 | else { | 2392 | else { |