Skip to content

Commit

Permalink
asus-laptop: add parentheses
Browse files Browse the repository at this point in the history
'!' 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>
  • Loading branch information
Roel Kluin authored and Len Brown committed Feb 7, 2008
1 parent f8d1c94 commit e1af14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e1af14e

Please sign in to comment.