Commit 9a4a153b authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Rob Clark

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: default avatarNicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: default avatarAbhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent d3cb8f3d
...@@ -1049,7 +1049,7 @@ static void dsi_wait4video_done(struct msm_dsi_host *msm_host) ...@@ -1049,7 +1049,7 @@ static void dsi_wait4video_done(struct msm_dsi_host *msm_host)
ret = wait_for_completion_timeout(&msm_host->video_comp, ret = wait_for_completion_timeout(&msm_host->video_comp,
msecs_to_jiffies(70)); msecs_to_jiffies(70));
if (ret <= 0) if (ret == 0)
DRM_DEV_ERROR(dev, "wait for video done timed out\n"); DRM_DEV_ERROR(dev, "wait for video done timed out\n");
dsi_intr_ctrl(msm_host, DSI_IRQ_MASK_VIDEO_DONE, 0); dsi_intr_ctrl(msm_host, DSI_IRQ_MASK_VIDEO_DONE, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment