diff options
| author | YueHaibing <yuehaibing@huawei.com> | 2019-04-11 13:25:12 -0400 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-04-11 13:25:12 -0400 |
| commit | de110fddcb2251c2a3a0dbe32d3d60800e775a88 (patch) | |
| tree | b9edc2126fd62a2064d05d698aba39e643d67afb | |
| parent | 730dd516eda738dfad69910b56f24e97fa3bf234 (diff) | |
video: fbdev: mxsfb: remove set but not used variable 'line_count'
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 <yuehaibing@huawei.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: Melchior Franz <melchior.franz@ginzinger.com>
[b.zolnierkie: minor patch summary fixup]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
| -rw-r--r-- | drivers/video/fbdev/mxsfb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c index a017200a16b3..1fdd1eb38fe0 100644 --- a/drivers/video/fbdev/mxsfb.c +++ b/drivers/video/fbdev/mxsfb.c | |||
| @@ -630,7 +630,6 @@ static int mxsfb_restore_mode(struct fb_info *fb_info, | |||
| 630 | struct fb_videomode *vmode) | 630 | struct fb_videomode *vmode) |
| 631 | { | 631 | { |
| 632 | struct mxsfb_info *host = fb_info->par; | 632 | struct mxsfb_info *host = fb_info->par; |
| 633 | unsigned line_count; | ||
| 634 | unsigned period; | 633 | unsigned period; |
| 635 | unsigned long pa, fbsize; | 634 | unsigned long pa, fbsize; |
| 636 | int bits_per_pixel, ofs, ret = 0; | 635 | int bits_per_pixel, ofs, ret = 0; |
| @@ -717,7 +716,6 @@ static int mxsfb_restore_mode(struct fb_info *fb_info, | |||
| 717 | writel(fb_info->fix.smem_start, host->base + host->devdata->next_buf); | 716 | writel(fb_info->fix.smem_start, host->base + host->devdata->next_buf); |
| 718 | } | 717 | } |
| 719 | 718 | ||
| 720 | line_count = fb_info->fix.smem_len / fb_info->fix.line_length; | ||
| 721 | fb_info->fix.ypanstep = 1; | 719 | fb_info->fix.ypanstep = 1; |
| 722 | 720 | ||
| 723 | clk_prepare_enable(host->clk); | 721 | clk_prepare_enable(host->clk); |
