summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorLibin <huawei.libin@huawei.com>2013-07-18 15:39:51 +0800
committerPekka Enberg <penberg@kernel.org>2013-08-13 09:21:46 +0300
commitac6434e6b804845290e4de06210fe110674140e6 (patch)
tree9a1f1ad36116903003e6d4ed8e2ebee972ccc73e /mm
parentb39ffbf8b14de2e7c1679462313cf32abb7ef463 (diff)
downloadop-kernel-dev-ac6434e6b804845290e4de06210fe110674140e6.zip
op-kernel-dev-ac6434e6b804845290e4de06210fe110674140e6.tar.gz
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')
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
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 {
OpenPOWER on IntegriCloud