Skip to content

Commit 8018018

Browse files
Dan Carpentergregkh
authored andcommitted
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: 1d72fab ("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>
1 parent 94ea04e commit 8018018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc3/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ static int dwc3_core_init(struct dwc3 *dwc)
11371137

11381138
dwc3_set_incr_burst_type(dwc);
11391139

1140-
dwc3_phy_power_on(dwc);
1140+
ret = dwc3_phy_power_on(dwc);
11411141
if (ret)
11421142
goto err_exit_phy;
11431143

0 commit comments

Comments
 (0)