brcm2708: switch to linux 4.4 and update patches
[openwrt.git] / target / linux / brcm2708 / patches-4.1 / 0171-bcm2708_fb-remove-redundant-code-as-detected-by-stat.patch
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
5  static analysis
6
7 static analysis with cppcheck detected some redundant code which
8 should probably be removed:
9
10 [drivers/video/fbdev/bcm2708_fb.c:269]: (style) Variable 'yres'
11   is assigned a value that is never used.
12
13 Signed-off-by: Colin Ian King <colin.king@canonical.com>
14 ---
15  drivers/video/fbdev/bcm2708_fb.c | 6 ------
16  1 file changed, 6 deletions(-)
17
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;
23  
24 -       yres = var->yres;
25 -       if (var->vmode & FB_VMODE_DOUBLE)
26 -               yres *= 2;
27 -       else if (var->vmode & FB_VMODE_INTERLACED)
28 -               yres = (yres + 1) / 2;
29 -
30         return 0;
31  }
32