]> Git Repo - linux.git/commitdiff
video: fbdev: mxsfb: remove set but not used variable 'line_count'
authorYueHaibing <[email protected]>
Thu, 11 Apr 2019 17:25:12 +0000 (19:25 +0200)
committerBartlomiej Zolnierkiewicz <[email protected]>
Thu, 11 Apr 2019 17:25:12 +0000 (19:25 +0200)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/video/fbdev/mxsfb.c: In function 'mxsfb_restore_mode':
drivers/video/fbdev/mxsfb.c:633:11: warning:
 variable 'line_count' set but not used [-Wunused-but-set-variable]

It's never used since introduction in commit f0a523b5e5e2 ("video: Add i.MX23/28
framebuffer driver") and can be removed.

Signed-off-by: YueHaibing <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: Melchior Franz <[email protected]>
[b.zolnierkie: minor patch summary fixup]
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
drivers/video/fbdev/mxsfb.c

index a017200a16b3620f959bf82b56bd5ddd011b7873..1fdd1eb38fe0aa67bd317281c521358d50db60ac 100644 (file)
@@ -630,7 +630,6 @@ static int mxsfb_restore_mode(struct fb_info *fb_info,
                        struct fb_videomode *vmode)
 {
        struct mxsfb_info *host = fb_info->par;
-       unsigned line_count;
        unsigned period;
        unsigned long pa, fbsize;
        int bits_per_pixel, ofs, ret = 0;
@@ -717,7 +716,6 @@ static int mxsfb_restore_mode(struct fb_info *fb_info,
                writel(fb_info->fix.smem_start, host->base + host->devdata->next_buf);
        }
 
-       line_count = fb_info->fix.smem_len / fb_info->fix.line_length;
        fb_info->fix.ypanstep = 1;
 
        clk_prepare_enable(host->clk);
This page took 0.060003 seconds and 4 git commands to generate.