Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: mb862xx: remove set but not used variable 'mdr'

Fix the following gcc warning:

drivers/video/fbdev/mb862xx/mb862xxfb_accel.c:187:6: warning: variable
‘mdr’ set but not used [-Wunused-but-set-variable]
int mdr;
^~~

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200403022553.33320-1-yanaijie@huawei.com

authored by

Jason Yan and committed by
Sam Ravnborg
465b1e05 7b987887

-2
-2
drivers/video/fbdev/mb862xx/mb862xxfb_accel.c
··· 184 184 static void mb86290fb_imageblit(struct fb_info *info, 185 185 const struct fb_image *image) 186 186 { 187 - int mdr; 188 187 u32 *cmd = NULL; 189 188 void (*cmdfn) (u32 *, u16, u16, u16, u16, u16, u32, u32, 190 189 const struct fb_image *, struct fb_info *) = NULL; ··· 195 196 u16 dx = image->dx, dy = image->dy; 196 197 int x2, y2, vxres, vyres; 197 198 198 - mdr = (GDC_ROP_COPY << 9); 199 199 x2 = image->dx + image->width; 200 200 y2 = image->dy + image->height; 201 201 vxres = info->var.xres_virtual;