projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230edc0
)
OMAPDSS: DISPC: Fix the usage of wait_for_completion_timeout
author
Chuansheng Liu
<chuansheng.liu@intel.com>
Tue, 6 Nov 2012 17:21:20 +0000
(
01:21
+0800)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Tue, 6 Nov 2012 11:29:45 +0000
(13:29 +0200)
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>
drivers/video/omap2/dss/dispc.c
patch
|
blob
|
history
diff --git
a/drivers/video/omap2/dss/dispc.c
b/drivers/video/omap2/dss/dispc.c
index 33c4403642dc2fae2a841b0e6e7565f3d5cb4458..78f78f93a1c74ee58ec09695baea0bb2e673c3c0 100644
(file)
--- 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;
}