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
198198 vc4_bo_cache_init(drm);
199199
200200 drm_mode_config_init(drm);
201− if (ret)
202− goto unref;
203201
204202 vc4_gem_init(drm);
205203
@@ -233,7 +231,6 @@ unbind_all: · 27 unmodified lines
233231 component_unbind_all(dev, drm);
234232 gem_destroy:
235233 vc4_gem_destroy(drm);
236−unref:
237234 drm_dev_unref(drm);
238235 vc4_bo_cache_destroy(drm);
239236 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