brcm2708-gpu-fw: update to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0457-drm-vc4-remove-redundant-ret-status-check.patch
1 From 2b643111b81df8724f317507471499660f4fc6f6 Mon Sep 17 00:00:00 2001
2 From: Colin Ian King <colin.king@canonical.com>
3 Date: Sat, 9 Jul 2016 23:26:03 +0100
4 Subject: [PATCH] drm/vc4: remove redundant ret status check
5
6 At the current point where ret is being checked for non-zero it has
7 not changed since it was initialized to zero, hence the check and the
8 label unref are redundant and can be removed.
9
10 Signed-off-by: Colin Ian King <colin.king@canonical.com>
11 Reviewed-by: Eric Anholt <eric@anholt.net>
12 (cherry picked from commit deb4765db386db67626ffd075d8b5eb5fdf9c4f6)
13 ---
14 drivers/gpu/drm/vc4/vc4_drv.c | 3 ---
15 1 file changed, 3 deletions(-)
16
17 --- a/drivers/gpu/drm/vc4/vc4_drv.c
18 +++ b/drivers/gpu/drm/vc4/vc4_drv.c
19 @@ -233,8 +233,6 @@ static int vc4_drm_bind(struct device *d
20 vc4_bo_cache_init(drm);
21
22 drm_mode_config_init(drm);
23 - if (ret)
24 - goto unref;
25
26 vc4_gem_init(drm);
27
28 @@ -268,7 +266,6 @@ unbind_all:
29 component_unbind_all(dev, drm);
30 gem_destroy:
31 vc4_gem_destroy(drm);
32 -unref:
33 drm_dev_unref(drm);
34 vc4_bo_cache_destroy(drm);
35 return ret;