diff options
author | John Crispin <john@openwrt.org> | 2015-10-26 09:01:05 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-10-26 09:01:05 +0000 |
commit | bf28fb50bf705fdd12f749c57abce1796b8c1024 (patch) | |
tree | ea7c899e5461e9a403c8f17543cbe66f89ba2925 /target/linux/brcm2708/patches-4.1/0172-bcm2708_fb-remove-unnecessary-initialization-of-resu.patch | |
parent | 63a50eeba30cb773e7abbd71c5e0727171ea740a (diff) | |
download | mtk-20170518-bf28fb50bf705fdd12f749c57abce1796b8c1024.zip mtk-20170518-bf28fb50bf705fdd12f749c57abce1796b8c1024.tar.gz mtk-20170518-bf28fb50bf705fdd12f749c57abce1796b8c1024.tar.bz2 |
brcm2708: update 4.1 patches
As usual, this patches were taken (and rebased) from
https://github.com/raspberrypi/linux/commits/rpi-4.1.y
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 47258
Diffstat (limited to 'target/linux/brcm2708/patches-4.1/0172-bcm2708_fb-remove-unnecessary-initialization-of-resu.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.1/0172-bcm2708_fb-remove-unnecessary-initialization-of-resu.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.1/0172-bcm2708_fb-remove-unnecessary-initialization-of-resu.patch b/target/linux/brcm2708/patches-4.1/0172-bcm2708_fb-remove-unnecessary-initialization-of-resu.patch new file mode 100644 index 0000000..164cbc5 --- /dev/null +++ b/target/linux/brcm2708/patches-4.1/0172-bcm2708_fb-remove-unnecessary-initialization-of-resu.patch @@ -0,0 +1,29 @@ +From 8a969160370faf8c7b09959ca36456d5f96a64d7 Mon Sep 17 00:00:00 2001 +From: Colin Ian King <colin.king@canonical.com> +Date: Wed, 2 Sep 2015 07:15:38 -0400 +Subject: [PATCH 172/203] bcm2708_fb: remove unnecessary initialization of + result + +static analysis by cppcheck detected an unnecessary initialization +of variable 'result' which is re-assigned almost immediately after +the initialization. Remove the redundant initialization. + +[drivers/video/fbdev/bcm2708_fb.c:406]: (performance) Variable + 'result' is reassigned a value before the old one has been used. + +Signed-off-by: Colin Ian King <colin.king@canonical.com> +--- + drivers/video/fbdev/bcm2708_fb.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/video/fbdev/bcm2708_fb.c ++++ b/drivers/video/fbdev/bcm2708_fb.c +@@ -420,7 +420,7 @@ static int bcm2708_fb_blank(int blank_mo + + static int bcm2708_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) + { +- s32 result = -1; ++ s32 result; + info->var.xoffset = var->xoffset; + info->var.yoffset = var->yoffset; + result = bcm2708_fb_set_par(info); |