diff options
| -rw-r--r-- | port/synopsys/usb_hc_synopsys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/port/synopsys/usb_hc_synopsys.c b/port/synopsys/usb_hc_synopsys.c index 518561f3..f01a3816 100644 --- a/port/synopsys/usb_hc_synopsys.c +++ b/port/synopsys/usb_hc_synopsys.c @@ -558,7 +558,7 @@ int usbh_control_transfer(usbh_epinfo_t ep, struct usb_setup_packet *setup, uint continue; } else if (ret < 0) { goto errout_with_mutex; - } else if (ret == 0) { + } else { break; } } @@ -588,7 +588,7 @@ int usbh_control_transfer(usbh_epinfo_t ep, struct usb_setup_packet *setup, uint continue; } else if (ret < 0) { goto errout_with_mutex; - } else if (ret == 0) { + } else { break; } } |
