From 87a981f18ffba758badf3dfc9c3efcd7beca19bb Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Fri, 18 Sep 2026 22:19:25 +0800 Subject: [PATCH] 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 Reviewed-by: Geert Uytterhoeven Link: https://patch.msgid.link/20260918141926.3023230-1-peng.fan@oss.nxp.com Signed-off-by: Geert Uytterhoeven --- drivers/zorro/zorro.c | 5 +---- 1 file changed, 1 insertion(+), 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; } }