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 | 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 | ||