hp-wmi: fix rfkill bug
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 29 Jun 2009 08:53:53 +0000 (10:53 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Jul 2009 16:55:27 +0000 (12:55 -0400)
Fix the third (I think) polarity error I accidentally
introduced in the rfkill rewrite to make wireless work
again on (certain?) HP laptops.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Maciej Rutecki <maciej.rutecki@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/platform/x86/hp-wmi.c

index 4ac2311c00afe9fae55fcf1334522a564fd943e5..ca508564a18144a519ee84c3d88c549b7b5d8ae7 100644 (file)
@@ -171,7 +171,7 @@ static int hp_wmi_tablet_state(void)
 static int hp_wmi_set_block(void *data, bool blocked)
 {
        unsigned long b = (unsigned long) data;
-       int query = BIT(b + 8) | ((!!blocked) << b);
+       int query = BIT(b + 8) | ((!blocked) << b);
 
        return hp_wmi_perform_query(HPWMI_WIRELESS_QUERY, 1, query);
 }