diff options
| author | Peng Fan <peng.fan@nxp.com> | 2026-09-18 22:19:25 +0800 |
|---|---|---|
| committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2026-09-27 16:20:43 +0200 |
| commit | 87a981f18ffba758badf3dfc9c3efcd7beca19bb (patch) | |
| tree | c13efa862ca04e8bd3e6145e0418db0c8e18bf0b | |
| parent | 6cdbe63badcb524c88f2c8b3cee08f2ffc099a1b (diff) | |
| download | linux-87a981f18ffba758badf3dfc9c3efcd7beca19bb.tar.gz linux-87a981f18ffba758badf3dfc9c3efcd7beca19bb.zip | |
zorro: Use assign_bit() where applicable
Convert open-coded if/else with set_bit/clear_bit to the assign_bit API.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://patch.msgid.link/20260918141926.3023230-1-peng.fan@oss.nxp.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
| -rw-r--r-- | drivers/zorro/zorro.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/zorro/zorro.c b/drivers/zorro/zorro.c index 45495c423c79..cc3177cc681c 100644 --- a/drivers/zorro/zorro.c +++ b/drivers/zorro/zorro.c @@ -103,10 +103,7 @@ static void __init mark_region(unsigned long start, unsigned long end, while (start < end) { u32 chunk = start>>Z2RAM_CHUNKSHIFT; - if (flag) - set_bit(chunk, zorro_unused_z2ram); - else - clear_bit(chunk, zorro_unused_z2ram); + assign_bit(chunk, zorro_unused_z2ram, flag); start += Z2RAM_CHUNKSIZE; } } |
