summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-07-04 17:47:23 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-07-04 17:47:23 +0200
commitdd7d958ae9126b2d4a96e41340579049afebd2bf (patch)
tree8993d38da98c0a0e5caf128ddcf5ec70c8f9ab64 /drivers/video
parentfbdev: omapfb: constify ctrl_caps, color_caps, panel_attr_grp and ctrl_attr_grp (diff)
downloadlinux-dd7d958ae9126b2d4a96e41340579049afebd2bf.tar.xz
linux-dd7d958ae9126b2d4a96e41340579049afebd2bf.zip
video: fbdev: aty: remove useless variable assignments in aty_var_to_crtc()
Value assigned to variable vdisplay at line 990 is overwritten at line 1039 before it can be used. Also, variable assignment at line 987 is the same as at line 1039. This makes such variable assignments useless. Remove these variable assignments and the code related. Addresses-Covertity-ID: 1226900 Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/aty/atyfb_base.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c
index 11026e726b68..3142d7f7020f 100644
--- a/drivers/video/fbdev/aty/atyfb_base.c
+++ b/drivers/video/fbdev/aty/atyfb_base.c
@@ -984,12 +984,6 @@ static int aty_var_to_crtc(const struct fb_info *info,
v_total <<= 1;
}
- vdisplay = yres;
-#ifdef CONFIG_FB_ATY_GENERIC_LCD
- if ((par->lcd_table != 0) && (crtc->lcd_gen_cntl & LCD_ON))
- vdisplay = par->lcd_height;
-#endif
-
v_disp--;
v_sync_strt--;
v_sync_end--;