summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/vga16fb.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-12-29 19:48:43 +0100
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-12-29 19:48:43 +0100
commitad614419da6db6876fa227e11e69987d4a8500f1 (patch)
tree89ed067267a7c8b5152743d854d17506d5360c93 /drivers/video/fbdev/vga16fb.c
parent530a6397a9af57e654c6d187c99ca50bfcf9f30d (diff)
downloadlinux-ad614419da6db6876fa227e11e69987d4a8500f1.tar.bz2
video: fbdev: remove redundant self assignment of 'height'
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>
Diffstat (limited to 'drivers/video/fbdev/vga16fb.c')
-rw-r--r--drivers/video/fbdev/vga16fb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/fbdev/vga16fb.c b/drivers/video/fbdev/vga16fb.c
index 5f0690c8fc93..2c6a576ed84c 100644
--- a/drivers/video/fbdev/vga16fb.c
+++ b/drivers/video/fbdev/vga16fb.c
@@ -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);