OSDN Git Service

[PATCH] arm: incorrect use of "&&" instead of "&"
authorWilly Tarreau <w@1wt.eu>
Sat, 25 Nov 2006 21:00:12 +0000 (22:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Nov 2006 21:45:04 +0000 (22:45 +0100)
commit9c99598b7afdf19504daa9fac9f7d296726c3791
tree1450277f68e2704de10476ede7aa818db2eb796a
parent1ab590dfeb70798d1b2f99cbf066a0d29aab9601
[PATCH] arm: incorrect use of "&&" instead of "&"

In integrator_init_irq(), the use of "&&" in the following
statement causes all interrupts to be marked valid regardless
of INTEGRATOR_SC_VALID_INT, as long as it's non-zero :

     if (((1 << i) && INTEGRATOR_SC_VALID_INT) != 0)

Obvious fix is to replace it with "&". This was already fixed
in 2.6.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Acked-by: Russell King <rmk+lkml@arm.linux.org.uk>
arch/arm/mach-integrator/irq.c