summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4
diff options
context:
space:
mode:
authorBernard Zhao <bernard@vivo.com>2021-02-02 13:23:38 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2021-02-09 17:16:57 +0100
commit439dde0a96f0d7a396f342a3918a0af28d9b5541 (patch)
tree7a3577b498e22e2901dca3b72ca71ea7af061d16 /drivers/gpu/drm/vc4
parentdrm: replace drm_modeset_lock_all() in drm_client_modeset_dpms_legacy() (diff)
downloadlinux-439dde0a96f0d7a396f342a3918a0af28d9b5541.tar.xz
linux-439dde0a96f0d7a396f342a3918a0af28d9b5541.zip
drm/vc4: remove unneeded variable: "ret"
remove unneeded variable: "ret". Signed-off-by: Bernard Zhao <bernard@vivo.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20210202122338.15351-1-bernard@vivo.com (cherry picked from commit f0c5a89e534b43bfef8e7bf7baa5624cd84e1e18) Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/vc4')
-rw-r--r--drivers/gpu/drm/vc4/vc4_gem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_gem.c b/drivers/gpu/drm/vc4/vc4_gem.c
index b641252939d8..445d3bab89e0 100644
--- a/drivers/gpu/drm/vc4/vc4_gem.c
+++ b/drivers/gpu/drm/vc4/vc4_gem.c
@@ -1026,7 +1026,6 @@ int vc4_queue_seqno_cb(struct drm_device *dev,
void (*func)(struct vc4_seqno_cb *cb))
{
struct vc4_dev *vc4 = to_vc4_dev(dev);
- int ret = 0;
unsigned long irqflags;
cb->func = func;
@@ -1041,7 +1040,7 @@ int vc4_queue_seqno_cb(struct drm_device *dev,
}
spin_unlock_irqrestore(&vc4->job_lock, irqflags);
- return ret;
+ return 0;
}
/* Scheduled when any job has been completed, this walks the list of