summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/edp
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-04-11 15:10:37 +0200
committerRob Clark <robdclark@gmail.com>2015-06-11 13:11:03 -0400
commitc6d0baf1fdbe32594e6e8bf6870f3951d3cf6415 (patch)
tree8717a6bd3595a60f5836219222085a6bec2bcd44 /drivers/gpu/drm/msm/edp
parenta51d01f067b34b138deae6ff86276e807c606876 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/msm/edp')
-rw-r--r--drivers/gpu/drm/msm/edp/edp_ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/edp/edp_ctrl.c b/drivers/gpu/drm/msm/edp/edp_ctrl.c
index 17ae0cc3db70..43e549ba7258 100644
--- a/drivers/gpu/drm/msm/edp/edp_ctrl.c
+++ b/drivers/gpu/drm/msm/edp/edp_ctrl.c
@@ -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);