From a6ff2668c2c86925bdb7c436eeee3182d2bf9166 Mon Sep 17 00:00:00 2001 From: aozima Date: Sun, 27 Mar 2022 12:57:22 +0800 Subject: update stm32 hc port: fixed control_transfer return value. --- port/synopsys/usb_hc_synopsys.c | 4 ++-- 1 file 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; } } -- cgit v1.3.1