]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/nouveau/kms/nv04: remove set but not used variable 'width'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 17 Jan 2020 02:01:02 +0000 (10:01 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 22 Jan 2020 22:56:51 +0000 (08:56 +1000)
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 <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv04/arb.c

index f607a04d262dec2b2829de7dc7b0c4b4c49075bf..9d4a2d97507e03660b432a410497717a497c4a43 100644 (file)
@@ -53,7 +53,7 @@ struct nv_sim_state {
 static void
 nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb)
 {
-       int pagemiss, cas, width, bpp;
+       int pagemiss, cas, bpp;
        int nvclks, mclks, crtpagemiss;
        int found, mclk_extra, mclk_loop, cbs, m1, p1;
        int mclk_freq, pclk_freq, nvclk_freq;
@@ -65,7 +65,6 @@ nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb)
        nvclk_freq = arb->nvclk_khz;
        pagemiss = arb->mem_page_miss;
        cas = arb->mem_latency;
-       width = arb->memory_width >> 6;
        bpp = arb->bpp;
        cbs = 128;