summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8192e/rtllib_softmac_wx.c
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-07-11 08:56:20 +0900
committerLarry Finger <Larry.Finger@lwfinger.net>2011-08-23 20:03:54 -0500
commit4f6807e8d2e972393009830d305ecec2d80c0449 (patch)
treea1f1bf47b8bc0859636f17bcdf56e513984df89f /drivers/staging/rtl8192e/rtllib_softmac_wx.c
parent3591733d287446edbeb14bbc36fb6f23a9f8cefd (diff)
rtl8192e: Remove occurences of #if 1
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtllib_softmac_wx.c')
-rw-r--r--drivers/staging/rtl8192e/rtllib_softmac_wx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_softmac_wx.c b/drivers/staging/rtl8192e/rtllib_softmac_wx.c
index 863b2851657..d88bb109a31 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac_wx.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac_wx.c
@@ -570,7 +570,7 @@ int rtllib_wx_set_power(struct rtllib_device *ieee,
union iwreq_data *wrqu, char *extra)
{
int ret = 0;
-#if 1
+
if (
(!ieee->sta_wake_up) ||
(!ieee->enter_sleep_state) ||
@@ -580,7 +580,7 @@ int rtllib_wx_set_power(struct rtllib_device *ieee,
return -1;
}
-#endif
+
down(&ieee->wx_sem);
if (wrqu->power.disabled){