From: Wei Yang Date: Thu, 6 Jul 2017 22:36:22 +0000 (-0700) Subject: mm/slub.c: remove a redundant assignment in ___slab_alloc() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66fdbe520315ee2ec0dbc8da5af4003d3911c534;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm/slub.c: remove a redundant assignment in ___slab_alloc() When the code comes to this point, there are two cases: 1. cpu_slab is deactivated 2. cpu_slab is empty In both cased, cpu_slab->freelist is NULL at this moment. This patch removes the redundant assignment of cpu_slab->freelist. Link: http://lkml.kernel.org/r/20170507031215.3130-1-richard.weiyang@gmail.com Signed-off-by: Wei Yang Cc: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slub.c b/mm/slub.c index 8addc535bcdc..b6b637503d77 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2572,7 +2572,6 @@ new_slab: page = c->page = c->partial; c->partial = page->next; stat(s, CPU_PARTIAL_ALLOC); - c->freelist = NULL; goto redo; }