Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25b08bf6 authored by Chuansheng Liu's avatar Chuansheng Liu Committed by Luciano Coelho
Browse files

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: default avatarliu chuansheng <chuansheng.liu@intel.com>
Signed-off-by: default avatarLuciano Coelho <luca@coelho.fi>
parent 4eeac22c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;
		}
	}