1 From 5a50f31eec8f7cda9f2d8d89d47609e01be70fb8 Mon Sep 17 00:00:00 2001
2 From: Colin Ian King <colin.king@canonical.com>
3 Date: Wed, 2 Sep 2015 07:13:17 -0400
4 Subject: [PATCH 171/222] bcm2708_fb: remove redundant code as detected by
7 static analysis with cppcheck detected some redundant code which
8 should probably be removed:
10 [drivers/video/fbdev/bcm2708_fb.c:269]: (style) Variable 'yres'
11 is assigned a value that is never used.
13 Signed-off-by: Colin Ian King <colin.king@canonical.com>
15 drivers/video/fbdev/bcm2708_fb.c | 6 ------
16 1 file changed, 6 deletions(-)
18 --- a/drivers/video/fbdev/bcm2708_fb.c
19 +++ b/drivers/video/fbdev/bcm2708_fb.c
20 @@ -263,12 +263,6 @@ static int bcm2708_fb_check_var(struct f
21 if (var->yoffset > var->yres_virtual - var->yres)
22 var->yoffset = var->yres_virtual - var->yres - 1;
25 - if (var->vmode & FB_VMODE_DOUBLE)
27 - else if (var->vmode & FB_VMODE_INTERLACED)
28 - yres = (yres + 1) / 2;