diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-05-08 07:49:50 -0700 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-06-03 06:52:57 -0700 |
commit | 8f51558e8015c1994aee2d8747a60cdcb47aeecd (patch) | |
tree | bea9cee50734f3d116c3d2e874a63aacfeba4392 /fs/inode.c | |
parent | 5f8dac3fc7bae246cc666d0df1ba37fc077efc3d (diff) |
risc-v: replace bitmap_weight with bitmap_empty in riscv_fill_hwcap()
bitmap_empty() is better than bitmap_weight() because it may return
earlier, and improves on readability.
CC: Albert Ou <aou@eecs.berkeley.edu>
CC: Anup Patel <anup@brainfault.org>
CC: Atish Patra <atishp@atishpatra.org>
CC: Jisheng Zhang <jszhang@kernel.org>
CC: Palmer Dabbelt <palmer@dabbelt.com>
CC: Paul Walmsley <paul.walmsley@sifive.com>
CC: Tsukasa OI <research_trasio@irq.a4lg.com>
CC: linux-riscv@lists.infradead.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions