projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eeac22
)
wlcore: Fix the usage of wait_for_completion_timeout
author
Chuansheng Liu
<chuansheng.liu@intel.com>
Tue, 6 Nov 2012 17:28:14 +0000
(
01:28
+0800)
committer
Luciano Coelho
<luca@coelho.fi>
Fri, 16 Nov 2012 17:53:01 +0000
(19:53 +0200)
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>
drivers/net/wireless/ti/wlcore/ps.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ti/wlcore/ps.c
b/drivers/net/wireless/ti/wlcore/ps.c
index 4d1414a673fb6025f42d20e4b7da16fcaf2f6265..ffcd84336f0417b904f3c23cc1fb1311ba5fb697 100644
(file)
--- 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;
}
}