Skip to contentSkip to conversation

hp-wmi: fix rfkill bug

PATCH New Johannes Berg 1 participant 1 message Jun 29, 2009 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hp-wmi: fix rfkill bug

Fix the third (I think) polarity error I accidentally introduced in the rfkill rewrite to make wireless work again on (certain?) HP laptops.

---
 drivers/platform/x86/hp-wmi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/hp-wmi.c +1 -1
@@ -157,7 +157,7 @@ static int hp_wmi_dock_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);
 }