bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0693-drm-vc4-remove-unneeded-variable-ret.patch
1 From c0cfa3ce26baee0eb323481244e5a7f7a88db207 Mon Sep 17 00:00:00 2001
2 From: Bernard Zhao <bernard@vivo.com>
3 Date: Tue, 2 Feb 2021 04:23:38 -0800
4 Subject: [PATCH] drm/vc4: remove unneeded variable: "ret"
5
6 remove unneeded variable: "ret".
7
8 Signed-off-by: Bernard Zhao <bernard@vivo.com>
9 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
10 Link: https://patchwork.freedesktop.org/patch/msgid/20210202122338.15351-1-bernard@vivo.com
11 (cherry picked from commit f0c5a89e534b43bfef8e7bf7baa5624cd84e1e18)
12 Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
13 ---
14 drivers/gpu/drm/vc4/vc4_gem.c | 3 +--
15 1 file changed, 1 insertion(+), 2 deletions(-)
16
17 --- a/drivers/gpu/drm/vc4/vc4_gem.c
18 +++ b/drivers/gpu/drm/vc4/vc4_gem.c
19 @@ -1026,7 +1026,6 @@ int vc4_queue_seqno_cb(struct drm_device
20 void (*func)(struct vc4_seqno_cb *cb))
21 {
22 struct vc4_dev *vc4 = to_vc4_dev(dev);
23 - int ret = 0;
24 unsigned long irqflags;
25
26 cb->func = func;
27 @@ -1041,7 +1040,7 @@ int vc4_queue_seqno_cb(struct drm_device
28 }
29 spin_unlock_irqrestore(&vc4->job_lock, irqflags);
30
31 - return ret;
32 + return 0;
33 }
34
35 /* Scheduled when any job has been completed, this walks the list of