Skip to content

Commit 5b67208

Browse files
Baoquan Hedennisszhou
authored andcommitted
mm/percpu.c: remove redundant check
The conditional check "(ai->dyn_size < PERCPU_DYNAMIC_EARLY_SIZE) has covered the check '(!ai->dyn_size)'. Signed-off-by: Baoquan He <[email protected]> Signed-off-by: Dennis Zhou <[email protected]>
1 parent 41fd59b commit 5b67208

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mm/percpu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2615,7 +2615,6 @@ void __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai,
26152615
PCPU_SETUP_BUG_ON(ai->unit_size < PCPU_MIN_UNIT_SIZE);
26162616
PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->unit_size, PCPU_BITMAP_BLOCK_SIZE));
26172617
PCPU_SETUP_BUG_ON(ai->dyn_size < PERCPU_DYNAMIC_EARLY_SIZE);
2618-
PCPU_SETUP_BUG_ON(!ai->dyn_size);
26192618
PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->reserved_size, PCPU_MIN_ALLOC_SIZE));
26202619
PCPU_SETUP_BUG_ON(!(IS_ALIGNED(PCPU_BITMAP_BLOCK_SIZE, PAGE_SIZE) ||
26212620
IS_ALIGNED(PAGE_SIZE, PCPU_BITMAP_BLOCK_SIZE)));

0 commit comments

Comments
 (0)