From: Johannes Berg Date: Mon, 29 Jun 2009 08:53:53 +0000 (+0200) Subject: hp-wmi: fix rfkill bug X-Git-Tag: v2.6.31-rc3~40^2~5^2~11 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=76d8b64e536362e16e38ee1c279c965ebfe094cc;p=~shefty%2Frdma-dev.git 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. Signed-off-by: Johannes Berg Tested-by: Maciej Rutecki Signed-off-by: John W. Linville --- diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 4ac2311c00a..ca508564a18 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c @@ -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); }