diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/dummy_hcd.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index e454775c2ff2..433f8c47cce5 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c | |||
@@ -365,16 +365,14 @@ dummy_enable (struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) | |||
365 | case USB_SPEED_HIGH: | 365 | case USB_SPEED_HIGH: |
366 | if (max == 512) | 366 | if (max == 512) |
367 | break; | 367 | break; |
368 | /* conserve return statements */ | 368 | goto done; |
369 | default: | 369 | case USB_SPEED_FULL: |
370 | switch (max) { | 370 | if (max == 8 || max == 16 || max == 32 || max == 64) |
371 | case 8: case 16: case 32: case 64: | ||
372 | /* we'll fake any legal size */ | 371 | /* we'll fake any legal size */ |
373 | break; | 372 | break; |
374 | default: | 373 | /* save a return statement */ |
375 | case USB_SPEED_LOW: | 374 | default: |
376 | goto done; | 375 | goto done; |
377 | } | ||
378 | } | 376 | } |
379 | break; | 377 | break; |
380 | case USB_ENDPOINT_XFER_INT: | 378 | case USB_ENDPOINT_XFER_INT: |