Skip to content

Commit

Permalink
pxa168fb: remove set but not used variables 'mi'
Browse files Browse the repository at this point in the history
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/video/fbdev/pxa168fb.c: In function 'pxa168fb_set_par':
drivers/video/fbdev/pxa168fb.c:408:29: warning:
 variable 'mi' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Cc: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
  • Loading branch information
YueHaibing authored and Bartlomiej Zolnierkiewicz committed Oct 8, 2018
1 parent 9827f26 commit b19f682
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/video/fbdev/pxa168fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,6 @@ static int pxa168fb_set_par(struct fb_info *info)
struct fb_var_screeninfo *var = &info->var;
struct fb_videomode mode;
u32 x;
struct pxa168fb_mach_info *mi;

mi = dev_get_platdata(fbi->dev);

/*
* Set additional mode info.
Expand Down

0 comments on commit b19f682

Please sign in to comment.