]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: amd: ps: replace bitwise OR with logical OR in IRQ return check
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Tue, 7 Jul 2026 05:59:38 +0000 (11:29 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2026 22:47:18 +0000 (23:47 +0100)
The condition 'irq_flag | wake_irq_flag' uses bitwise OR to combine two
integer flags that are used as booleans. Replace with logical OR '||' to
correctly express the intended boolean check.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Fixes: 7f91f012c1df0 ("ASoC: amd: ps: fix for irq handler return status")
Link: https://patch.msgid.link/20260707060130.2514138-4-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/ps/pci-ps.c

index 1162d13d85055ab9fa1562371a1a33fa832d66c4..729f9aaba69e76a87a4426e01ccaa4ee5cd62af9 100644 (file)
@@ -248,7 +248,7 @@ static irqreturn_t acp63_irq_handler(int irq, void *dev_id)
        if (sdw_dma_irq_flag)
                return IRQ_WAKE_THREAD;
 
-       if (irq_flag | wake_irq_flag)
+       if (irq_flag || wake_irq_flag)
                return IRQ_HANDLED;
        else
                return IRQ_NONE;