diff options
author | Baoquan He <bhe@redhat.com> | 2023-07-21 15:17:58 +0200 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2023-08-25 17:04:59 +0200 |
commit | 5b672085e70c2ea40f4c9d6a23848079bf0ff700 (patch) | |
tree | 4a9ab986b6cb7769c6fd1fd51e21691657ec5df1 /mm/percpu.c | |
parent | mm/percpu: Remove some local variables in pcpu_populate_pte (diff) | |
download | linux-5b672085e70c2ea40f4c9d6a23848079bf0ff700.tar.xz linux-5b672085e70c2ea40f4c9d6a23848079bf0ff700.zip |
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 <bhe@redhat.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 85e3f9b2a61f..93b1bec2b28d 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -2615,7 +2615,6 @@ void __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai, PCPU_SETUP_BUG_ON(ai->unit_size < PCPU_MIN_UNIT_SIZE); PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->unit_size, PCPU_BITMAP_BLOCK_SIZE)); PCPU_SETUP_BUG_ON(ai->dyn_size < PERCPU_DYNAMIC_EARLY_SIZE); - PCPU_SETUP_BUG_ON(!ai->dyn_size); PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->reserved_size, PCPU_MIN_ALLOC_SIZE)); PCPU_SETUP_BUG_ON(!(IS_ALIGNED(PCPU_BITMAP_BLOCK_SIZE, PAGE_SIZE) || IS_ALIGNED(PAGE_SIZE, PCPU_BITMAP_BLOCK_SIZE))); |