mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 15:40:56 +07:00
usb: chipidea: don't clobber return value of ci_role_start()
If a role fails to start, propagate the error code up the call stack from probe. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
769d92c411
commit
3b1280ca4b
@ -497,7 +497,6 @@ static int ci_hdrc_probe(struct platform_device *pdev)
|
||||
ret = ci_role_start(ci, ci->role);
|
||||
if (ret) {
|
||||
dev_err(dev, "can't start %s role\n", ci_role(ci)->name);
|
||||
ret = -ENODEV;
|
||||
goto rm_wq;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user