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

Commit 864fa7f4 authored by Chuansheng Liu's avatar Chuansheng Liu Committed by Tomi Valkeinen
Browse files

OMAPDSS: DISPC: 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 230edc03
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -3963,9 +3963,6 @@ int omap_dispc_wait_for_irq_timeout(u32 irqmask, unsigned long timeout)
	if (timeout == 0)
		return -ETIMEDOUT;

	if (timeout == -ERESTARTSYS)
		return -ERESTARTSYS;

	return 0;
}