Skip to content

Commit 67d52f0

Browse files
YueHaibingBen Skeggs
authored andcommitted
drm/nouveau/kms/nv04: remove set but not used variable 'width'
drivers/gpu/drm/nouveau/dispnv04/arb.c: In function nv04_calc_arb: drivers/gpu/drm/nouveau/dispnv04/arb.c:56:21: warning: variable width set but not used [-Wunused-but-set-variable] 'width' is never used, so remove it. Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
1 parent 3949636 commit 67d52f0

File tree

1 file changed

+1
-2
lines changed
  • drivers/gpu/drm/nouveau/dispnv04

1 file changed

+1
-2
lines changed

drivers/gpu/drm/nouveau/dispnv04/arb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct nv_sim_state {
5353
static void
5454
nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb)
5555
{
56-
int pagemiss, cas, width, bpp;
56+
int pagemiss, cas, bpp;
5757
int nvclks, mclks, crtpagemiss;
5858
int found, mclk_extra, mclk_loop, cbs, m1, p1;
5959
int mclk_freq, pclk_freq, nvclk_freq;
@@ -65,7 +65,6 @@ nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb)
6565
nvclk_freq = arb->nvclk_khz;
6666
pagemiss = arb->mem_page_miss;
6767
cas = arb->mem_latency;
68-
width = arb->memory_width >> 6;
6968
bpp = arb->bpp;
7069
cbs = 128;
7170

0 commit comments

Comments
 (0)