|
@@ -246,7 +246,7 @@ void irq_setup_generic_chip(struct irq_chip_generic *gc, u32 msk,
|
|
|
gc->mask_cache = irq_reg_readl(gc->reg_base + ct->regs.mask);
|
|
|
|
|
|
for (i = gc->irq_base; msk; msk >>= 1, i++) {
|
|
|
- if (!msk & 0x01)
|
|
|
+ if (!(msk & 0x01))
|
|
|
continue;
|
|
|
|
|
|
if (flags & IRQ_GC_INIT_NESTED_LOCK)
|
|
@@ -301,7 +301,7 @@ void irq_remove_generic_chip(struct irq_chip_generic *gc, u32 msk,
|
|
|
raw_spin_unlock(&gc_lock);
|
|
|
|
|
|
for (; msk; msk >>= 1, i++) {
|
|
|
- if (!msk & 0x01)
|
|
|
+ if (!(msk & 0x01))
|
|
|
continue;
|
|
|
|
|
|
/* Remove handler first. That will mask the irq line */
|