From: Chuansheng Liu Date: Tue, 6 Nov 2012 17:28:14 +0000 (+0800) Subject: wlcore: Fix the usage of wait_for_completion_timeout X-Git-Tag: v3.9-rc1~139^2~2^2^2~42^2~50^2^2~34^2~45 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=25b08bf662dea1291a9872547819f0e96bf68fe6;p=~emulex%2Finfiniband.git 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 Signed-off-by: Luciano Coelho --- diff --git a/drivers/net/wireless/ti/wlcore/ps.c b/drivers/net/wireless/ti/wlcore/ps.c index 4d1414a673f..ffcd84336f0 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; } }