diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-07-09 18:26:03 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2016-07-11 20:23:50 -0400 |
commit | deb4765db386db67626ffd075d8b5eb5fdf9c4f6 (patch) | |
tree | bbd793c7621758a2582b8982efa34d916d977a4a | |
parent | 1bf59f1dcbe25272f6b5d870054647e58a8a9c55 (diff) |
drm/vc4: remove redundant ret status check
At the current point where ret is being checked for non-zero it has
not changed since it was initialized to zero, hence the check and the
label unref are redundant and can be removed.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_drv.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index 65f77cc243a6..2f30214ee810 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c | |||
@@ -198,8 +198,6 @@ static int vc4_drm_bind(struct device *dev) | |||
198 | vc4_bo_cache_init(drm); | 198 | vc4_bo_cache_init(drm); |
199 | 199 | ||
200 | drm_mode_config_init(drm); | 200 | drm_mode_config_init(drm); |
201 | if (ret) | ||
202 | goto unref; | ||
203 | 201 | ||
204 | vc4_gem_init(drm); | 202 | vc4_gem_init(drm); |
205 | 203 | ||
@@ -233,7 +231,6 @@ unbind_all: | |||
233 | component_unbind_all(dev, drm); | 231 | component_unbind_all(dev, drm); |
234 | gem_destroy: | 232 | gem_destroy: |
235 | vc4_gem_destroy(drm); | 233 | vc4_gem_destroy(drm); |
236 | unref: | ||
237 | drm_dev_unref(drm); | 234 | drm_dev_unref(drm); |
238 | vc4_bo_cache_destroy(drm); | 235 | vc4_bo_cache_destroy(drm); |
239 | return ret; | 236 | return ret; |