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: upstream/snapshot3+hdmi~5537^2~28^2^2~62^2~50^2^2~34^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25b08bf662dea1291a9872547819f0e96bf68fe6;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 4d1414a..ffcd843 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; } }