diff options
-rw-r--r-- | drivers/usb/gadget/fsl_usb2_udc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/usb/gadget/fsl_usb2_udc.c b/drivers/usb/gadget/fsl_usb2_udc.c index 99a420dbdbc0..204cf38c63fb 100644 --- a/drivers/usb/gadget/fsl_usb2_udc.c +++ b/drivers/usb/gadget/fsl_usb2_udc.c | |||
@@ -1165,16 +1165,12 @@ static int ep0_prime_status(struct fsl_udc *udc, int direction) | |||
1165 | return status; | 1165 | return status; |
1166 | } | 1166 | } |
1167 | 1167 | ||
1168 | static inline int udc_reset_ep_queue(struct fsl_udc *udc, u8 pipe) | 1168 | static void udc_reset_ep_queue(struct fsl_udc *udc, u8 pipe) |
1169 | { | 1169 | { |
1170 | struct fsl_ep *ep = get_ep_by_pipe(udc, pipe); | 1170 | struct fsl_ep *ep = get_ep_by_pipe(udc, pipe); |
1171 | 1171 | ||
1172 | if (!ep->name) | 1172 | if (ep->name) |
1173 | return 0; | 1173 | nuke(ep, -ESHUTDOWN); |
1174 | |||
1175 | nuke(ep, -ESHUTDOWN); | ||
1176 | |||
1177 | return 0; | ||
1178 | } | 1174 | } |
1179 | 1175 | ||
1180 | /* | 1176 | /* |