2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00

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: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
Nicholas Mc Guire 2015-04-11 15:10:37 +02:00 committed by Rob Clark
parent a51d01f067
commit c6d0baf1fd

View File

@ -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);