summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/core.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-05-04 17:59:24 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-13 18:52:04 +0900
commit8018018d9c56473067e5358986ce0ee9ce56949f (patch)
tree6e60329ef448577d714174087ae6c8bfac82ee7b /drivers/usb/dwc3/core.c
parent94ea04ec790887b5b0e43429a92c18a1e692ec08 (diff)
downloadlinux-stable-8018018d9c56473067e5358986ce0ee9ce56949f.tar.gz
linux-stable-8018018d9c56473067e5358986ce0ee9ce56949f.tar.bz2
linux-stable-8018018d9c56473067e5358986ce0ee9ce56949f.zip
usb: dwc3: fix a test for error in dwc3_core_init()
This was refactored recently and the "ret = " was accidentally deleted so the errors aren't checked. Fixes: 1d72fab47656 ("USB: dwc3: refactor phy handling") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Johan Hovold <johan+linaro@kernel.org> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/d0c5a04f-deee-4ebe-9b0b-dc5492564519@kili.mountain Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/core.c')
-rw-r--r--drivers/usb/dwc3/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 0beaab932e7d..7b2ce013cc5b 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -1137,7 +1137,7 @@ static int dwc3_core_init(struct dwc3 *dwc)
dwc3_set_incr_burst_type(dwc);
- dwc3_phy_power_on(dwc);
+ ret = dwc3_phy_power_on(dwc);
if (ret)
goto err_exit_phy;