History

usb: gadget: remove redundant self assignment

The assignment ret = ret is redundant and can be removed.

Stefan Agner committed 9 years ago

Commit 8a8b1611 parent b0b3ddf1 file · +1 −3Browse files

Unified · Split

drivers/usb/gadget/udc/core.c+1−3
@@ -139,10 +139,8 @@ int usb_ep_disable(struct usb_ep *ep) · 138 unmodified lines
139 goto out;139 goto out;
140 140
141 ret = ep->ops->disable(ep);141 ret = ep->ops->disable(ep);
142 if (ret) {142 if (ret)
143 ret = ret;
144 goto out;143 goto out;
145 }
146 144
147 ep->enabled = false;145 ep->enabled = false;
148 146

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