1 From 6c69e9ba4802bc0240a930ebacf171ddcf2f3d95 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
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.
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)
14 drivers/gpu/drm/vc4/vc4_drv.c | 3 ---
15 1 file changed, 3 deletions(-)
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);
22 drm_mode_config_init(drm);
28 @@ -268,7 +266,6 @@ unbind_all:
29 component_unbind_all(dev, drm);
34 vc4_bo_cache_destroy(drm);