The assignment ret = ret is redundant and can be removed.
Unified · Split
| @@ -139,10 +139,8 @@ int usb_ep_disable(struct usb_ep *ep) · 138 unmodified lines | ||
| 139 | 139 | goto out; |
| 140 | 140 | |
| 141 | 141 | ret = ep->ops->disable(ep); |
| 142 | − if (ret) { | |
| 143 | − ret = ret; | |
| 142 | + if (ret) | |
| 144 | 143 | goto out; |
| 145 | − } | |
| 146 | 144 | |
| 147 | 145 | ep->enabled = false; |
| 148 | 146 | |