diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2019-04-25 16:03:51 +0200 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2019-06-18 20:28:14 +0200 |
commit | 9a4a153b092c9f89dfa2766d48b61af251ea5697 (patch) | |
tree | 82ac804cd09b54b539fbb87f469106e9600c79a1 | |
parent | drm/msm/dpu: Remove bogus comment (diff) | |
download | linux-9a4a153b092c9f89dfa2766d48b61af251ea5697.tar.xz linux-9a4a153b092c9f89dfa2766d48b61af251ea5697.zip |
drm/msm: check for equals 0 only
wait_for_completion_timeout() returns 0 on timeout and aleast 1 otherwise
so checking for < makes no sense here.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
-rw-r--r-- | drivers/gpu/drm/msm/dsi/dsi_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 610183db1daf..dc16067128fc 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1049,7 +1049,7 @@ static void dsi_wait4video_done(struct msm_dsi_host *msm_host) ret = wait_for_completion_timeout(&msm_host->video_comp, msecs_to_jiffies(70)); - if (ret <= 0) + if (ret == 0) DRM_DEV_ERROR(dev, "wait for video done timed out\n"); dsi_intr_ctrl(msm_host, DSI_IRQ_MASK_VIDEO_DONE, 0); |