From: Chuansheng Liu Date: Tue, 6 Nov 2012 17:22:35 +0000 (+0800) Subject: OMAPDSS: APPLY: Fix the usage of wait_for_completion_timeout X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=933ed63405da8f7a76676e9e10491d7f3be269d1;p=linux-beck.git 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: liu chuansheng Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c index 6a214439762e..8d9521609150 100644 --- a/drivers/video/omap2/dss/apply.c +++ b/drivers/video/omap2/dss/apply.c @@ -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)