diff options
author | Chuansheng Liu <chuansheng.liu@intel.com> | 2012-11-07 01:28:14 +0800 |
---|---|---|
committer | Luciano Coelho <luca@coelho.fi> | 2012-11-16 19:53:01 +0200 |
commit | 25b08bf662dea1291a9872547819f0e96bf68fe6 (patch) | |
tree | 1da21beae3b1147cacee034b26a17ad75107962a /drivers/net/wireless/ti | |
parent | 4eeac22c159f053ea34527e4fea359ab10b4b5a5 (diff) | |
download | talos-op-linux-25b08bf662dea1291a9872547819f0e96bf68fe6.tar.gz talos-op-linux-25b08bf662dea1291a9872547819f0e96bf68fe6.zip |
wlcore: Fix the usage of wait_for_completion_timeout
The return value of wait_for_completion_timeout() is always
>= 0 with unsigned int type.
So the condition "ret < 0" or "ret >= 0" is pointless.
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Luciano Coelho <luca@coelho.fi>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/ps.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/ti/wlcore/ps.c b/drivers/net/wireless/ti/wlcore/ps.c index 4d1414a673fb..ffcd84336f04 100644 --- a/drivers/net/wireless/ti/wlcore/ps.c +++ b/drivers/net/wireless/ti/wlcore/ps.c @@ -151,9 +151,6 @@ int wl1271_ps_elp_wakeup(struct wl1271 *wl) wl12xx_queue_recovery_work(wl); ret = -ETIMEDOUT; goto err; - } else if (ret < 0) { - wl1271_error("ELP wakeup completion error."); - goto err; } } |