From: Chuansheng Liu Date: Tue, 6 Nov 2012 17:21:20 +0000 (+0800) Subject: OMAPDSS: DISPC: Fix the usage of wait_for_completion_timeout X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=864fa7f46162a32c7c18da0c15d04777aa34ac02;p=linux-beck.git 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: liu chuansheng Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index 33c4403642dc..78f78f93a1c7 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c @@ -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; }