History

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.

Colin Ian King committed 10 years ago

Commit deb47651 parent 1bf59f11 file · +0 −3Browse files

Unified · Split

drivers/gpu/drm/vc4/vc4_drv.c+0−3
@@ -198,8 +198,6 @@ static int vc4_drm_bind(struct device *dev) · 197 unmodified lines
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: · 27 unmodified lines
233 component_unbind_all(dev, drm);231 component_unbind_all(dev, drm);
234gem_destroy:232gem_destroy:
235 vc4_gem_destroy(drm);233 vc4_gem_destroy(drm);
236unref:
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t