diff options
author | Chuansheng Liu <chuansheng.liu@intel.com> | 2012-11-06 12:21:20 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-11-06 06:29:45 -0500 |
commit | 864fa7f46162a32c7c18da0c15d04777aa34ac02 (patch) | |
tree | 94441695a979b698a84121cd942c0ba9d1b1f060 /drivers/video/omap2/dss/dispc.c | |
parent | 230edc033d9ebb62c1db9579262089fdb2353ee9 (diff) |
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 <chuansheng.liu@intel.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dispc.c')
-rw-r--r-- | drivers/video/omap2/dss/dispc.c | 3 |
1 files changed, 0 insertions, 3 deletions
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) | |||
3963 | if (timeout == 0) | 3963 | if (timeout == 0) |
3964 | return -ETIMEDOUT; | 3964 | return -ETIMEDOUT; |
3965 | 3965 | ||
3966 | if (timeout == -ERESTARTSYS) | ||
3967 | return -ERESTARTSYS; | ||
3968 | |||
3969 | return 0; | 3966 | return 0; |
3970 | } | 3967 | } |
3971 | 3968 | ||