video: fbdev: remove redundant self assignment of 'height'
authorColin Ian King <colin.king@canonical.com>
Fri, 29 Dec 2017 18:48:43 +0000 (19:48 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 29 Dec 2017 18:48:43 +0000 (19:48 +0100)
The assignment of height to itself is redundant and can be removed.

Detected with Coccinelle.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/vga16fb.c

index 5f0690c..2c6a576 100644 (file)
@@ -1055,7 +1055,6 @@ static void vga16fb_copyarea(struct fb_info *info, const struct fb_copyarea *are
        case FB_TYPE_VGA_PLANES:
                if (info->fix.type_aux == FB_AUX_VGA_PLANES_VGA4) {
                        width = width/8;
-                       height = height;
                        line_ofs = info->fix.line_length - width;
 
                        setmode(1);