diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2015-04-11 16:10:37 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-06-11 20:11:03 +0300 |
commit | c6d0baf1fdbe32594e6e8bf6870f3951d3cf6415 (patch) | |
tree | 8717a6bd3595a60f5836219222085a6bec2bcd44 | |
parent | a51d01f067b34b138deae6ff86276e807c606876 (diff) | |
download | linux-c6d0baf1fdbe32594e6e8bf6870f3951d3cf6415.tar.xz |
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>
-rw-r--r-- | drivers/gpu/drm/msm/edp/edp_ctrl.c | 2 |
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); |