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>
This commit is contained in:
Peng Fan 2026-09-18 22:19:25 +08:00 committed by Geert Uytterhoeven
parent 6cdbe63bad
commit 87a981f18f

View File

@ -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;
}
}