diff options
author | Roel Kluin <12o3l@tiscali.nl> | 2008-02-02 15:07:38 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-07 00:42:08 -0500 |
commit | e1af14e4b3d5f2a348987e3069ec835b782782b0 (patch) | |
tree | e1f984157585f5ee0a898c4438c559db1bff3df2 /drivers/misc | |
parent | f8d1c94b346b62747322728e00e11f552cd90902 (diff) |
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.c | 2 |
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) | |||
327 | 327 | ||
328 | switch (mask) { | 328 | switch (mask) { |
329 | case MLED_ON: | 329 | case MLED_ON: |
330 | out = !out & 0x1; | 330 | out = !(out & 0x1); |
331 | break; | 331 | break; |
332 | case GLED_ON: | 332 | case GLED_ON: |
333 | out = (out & 0x1) + 1; | 333 | out = (out & 0x1) + 1; |