projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
482f3ef
)
drm/vc4: remove unneeded variable: "ret"
author
Bernard Zhao
<bernard@vivo.com>
Tue, 2 Feb 2021 12:23:38 +0000
(
04:23
-0800)
committer
Maxime Ripard
<maxime@cerno.tech>
Tue, 2 Feb 2021 15:59:33 +0000
(16:59 +0100)
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
drivers/gpu/drm/vc4/vc4_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vc4/vc4_gem.c
b/drivers/gpu/drm/vc4/vc4_gem.c
index b641252939d878ee83527d9774fd91b426ababce..445d3bab89e0a27c421c2abd64164050513b362c 100644
(file)
--- 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