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

Commit 933ed634 authored by Chuansheng Liu's avatar Chuansheng Liu Committed by Tomi Valkeinen
Browse files

OMAPDSS: APPLY: 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 avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 864fa7f4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -414,8 +414,6 @@ static void wait_pending_extra_info_updates(void)
	r = wait_for_completion_timeout(&extra_updated_completion, t);
	if (r == 0)
		DSSWARN("timeout in wait_pending_extra_info_updates\n");
	else if (r < 0)
		DSSERR("wait_pending_extra_info_updates failed: %d\n", r);
}

int dss_mgr_wait_for_go(struct omap_overlay_manager *mgr)