mirror of
https://github.com/torvalds/linux.git
synced 2026-10-23 15:32:04 +02:00
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:
parent
6cdbe63bad
commit
87a981f18f
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user