mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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/[email protected] Signed-off-by: Wei Yang <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: David Rientjes <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c823bd9244
commit
66fdbe5203
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue