From: Roel Kluin <12o3l@tiscali.nl> Date: Sat, 2 Feb 2008 20:07:38 +0000 (+0100) Subject: asus-laptop: add parentheses X-Git-Tag: v2.6.25-rc1~297^2~3^2~2^2~1^2~9^2~1 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e1af14e4b3d5f2a348987e3069ec835b782782b0;p=linux-2.6-omap-h63xx.git asus-laptop: add parentheses '!' has a higher priority than '&': bitanding has no effect. Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: Len Brown --- diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c index 34666ff60d3..3bd883166e3 100644 --- a/drivers/misc/asus-laptop.c +++ b/drivers/misc/asus-laptop.c @@ -327,7 +327,7 @@ static void write_status(acpi_handle handle, int out, int mask) switch (mask) { case MLED_ON: - out = !out & 0x1; + out = !(out & 0x1); break; case GLED_ON: out = (out & 0x1) + 1;