]> git.baikalelectronics.ru Git - kernel.git/commit
mm: compaction: remove duplicate !list_empty(&sublist) check
authorLiu Xiang <liu.xiang@zlingsmart.com>
Thu, 1 Jul 2021 01:50:51 +0000 (18:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Jul 2021 03:47:29 +0000 (20:47 -0700)
commitf68c54baacd33e098336a5aa030a8a30aba06e2e
tree96900ba4918aa2c1b4ba1ca6d544bbfcb3b82020
parentd477d127847f250ef9dcc23312c96e9970c0a11e
mm: compaction: remove duplicate !list_empty(&sublist) check

The list_splice_tail(&sublist, freelist) also do !list_empty(&sublist)
check, so remove the duplicate call.

Link: https://lkml.kernel.org/r/20210609095409.19920-1-liu.xiang@zlingsmart.com
Signed-off-by: Liu Xiang <liu.xiang@zlingsmart.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/compaction.c