summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorRoel Kluin <12o3l@tiscali.nl>2008-02-02 21:07:38 +0100
committerLen Brown <len.brown@intel.com>2008-02-07 00:42:08 -0500
commite1af14e4b3d5f2a348987e3069ec835b782782b0 (patch)
treee1f984157585f5ee0a898c4438c559db1bff3df2 /drivers/misc
parentf8d1c94b346b62747322728e00e11f552cd90902 (diff)
downloadlinux-e1af14e4b3d5f2a348987e3069ec835b782782b0.tar.gz
linux-e1af14e4b3d5f2a348987e3069ec835b782782b0.tar.bz2
linux-e1af14e4b3d5f2a348987e3069ec835b782782b0.zip
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 <len.brown@intel.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/asus-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c
index 34666ff60d37..3bd883166e3d 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;