提交 c6d0baf1 编写于 作者: N Nicholas Mc Guire 提交者: Rob Clark

drm/msm: wait_for_completion_timeout return is never negative

wait_for_completion_timeout returns >= 0 but never
negative  - so the error check should be against equality
to 0 not <= 0.
Signed-off-by: NNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: NRob Clark <robdclark@gmail.com>
上级 a51d01f0
......@@ -1032,7 +1032,7 @@ static void edp_ctrl_off_worker(struct work_struct *work)
time_left = wait_for_completion_timeout(&ctrl->idle_comp,
msecs_to_jiffies(500));
if (time_left <= 0)
if (!time_left)
DBG("%s: idle pattern timedout, %lu\n",
__func__, time_left);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册