irqchip/sifive-plic: Make use of __assign_bit()
authorHongbo Li <lihongbo22@huawei.com>
Mon, 2 Sep 2024 13:08:24 +0000 (21:08 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Oct 2024 13:39:39 +0000 (15:39 +0200)
commit40d7af5375a4e27d8576d9d11954ac213d06f09e
treeab2ab8f300602e89b40d8b8ca7cc3df2f26a4cc3
parente408b0131644b0b3e7ab880aad905ca0c8ca8ad0
irqchip/sifive-plic: Make use of __assign_bit()

Replace the open coded

if (foo)
        __set_bit(n, bar);
    else
        __clear_bit(n, bar);

with __assign_bit(). No functional change intended.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/all/20240902130824.2878644-1-lihongbo22@huawei.com
drivers/irqchip/irq-sifive-plic.c