projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cf3c8b
)
drm/nouveau/kms/nv04: remove set but unused variable.
author
Wambui Karuga
<wambui.karugax@gmail.com>
Tue, 31 Dec 2019 20:56:07 +0000
(23:56 +0300)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 15 Jan 2020 00:49:59 +0000
(10:49 +1000)
The local variable `pclks` is defined and set but not used and can
therefore be removed.
Issue found by coccinelle.
Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv04/arb.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/dispnv04/arb.c
b/drivers/gpu/drm/nouveau/dispnv04/arb.c
index 362495535e693050f169e0061b70dfea8e349422..f607a04d262dec2b2829de7dc7b0c4b4c49075bf 100644
(file)
--- a/
drivers/gpu/drm/nouveau/dispnv04/arb.c
+++ b/
drivers/gpu/drm/nouveau/dispnv04/arb.c
@@
-54,7
+54,7
@@
static void
nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb)
{
int pagemiss, cas, width, bpp;
- int nvclks, mclks,
pclks,
crtpagemiss;
+ int nvclks, mclks, crtpagemiss;
int found, mclk_extra, mclk_loop, cbs, m1, p1;
int mclk_freq, pclk_freq, nvclk_freq;
int us_m, us_n, us_p, crtc_drain_rate;
@@
-69,7
+69,6
@@
nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb)
bpp = arb->bpp;
cbs = 128;
- pclks = 2;
nvclks = 10;
mclks = 13 + cas;
mclk_extra = 3;