diff options
author | Yosry Ahmed <yosryahmed@google.com> | 2024-03-12 00:52:10 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-04-26 05:55:48 +0200 |
commit | fea68a75651cfc3458318416a1a2b45161cd22c2 (patch) | |
tree | 847d023599504a8b407982a3905adcf382458919 /fs/init.c | |
parent | lib/test_hmm.c: handle src_pfns and dst_pfns allocation failure (diff) | |
download | linux-fea68a75651cfc3458318416a1a2b45161cd22c2.tar.xz linux-fea68a75651cfc3458318416a1a2b45161cd22c2.zip |
mm: zswap: remove unnecessary check in zswap_find_zpool()
zswap_find_zpool() checks if ZSWAP_NR_ZPOOLS > 1, which is always true.
This is a remnant from a patch version that had ZSWAP_NR_ZPOOLS as a
config option and never made it upstream. Remove the unnecessary check.
Link: https://lkml.kernel.org/r/20240311235210.2937484-1-yosryahmed@google.com
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>
Reviewed-by: Nhat Pham <nphamcs@gmail.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/init.c')
0 files changed, 0 insertions, 0 deletions