usb: gadget: remove redundant self assignment
commit 8a8b161df5ce06ef5a315899f83978e765be09e8 upstream. The assignment ret = ret is redundant and can be removed. Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com> Reviewed-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Cc: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fc7a9eb0f8
commit
17af798369
@ -139,10 +139,8 @@ int usb_ep_disable(struct usb_ep *ep)
|
||||
goto out;
|
||||
|
||||
ret = ep->ops->disable(ep);
|
||||
if (ret) {
|
||||
ret = ret;
|
||||
if (ret)
|
||||
goto out;
|
||||
}
|
||||
|
||||
ep->enabled = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user