irqchip/gic-v3: Fix quiescence check in gic_enable_redist
authorAndrew Jones <drjones@redhat.com>
Wed, 11 May 2016 19:23:17 +0000 (21:23 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 2 Jun 2016 17:00:06 +0000 (18:00 +0100)
Make sure the two sides of the bitwise operation are bool.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3.c

index fb042ba9a3dbbd239e6cbe6751be24978185eab8..2c5ba0e704bf149dc8416228a825a7a199629e8e 100644 (file)
@@ -155,7 +155,7 @@ static void gic_enable_redist(bool enable)
 
        while (count--) {
                val = readl_relaxed(rbase + GICR_WAKER);
-               if (enable ^ (val & GICR_WAKER_ChildrenAsleep))
+               if (enable ^ (bool)(val & GICR_WAKER_ChildrenAsleep))
                        break;
                cpu_relax();
                udelay(1);