Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b1280ca authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Greg Kroah-Hartman
Browse files

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: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 769d92c4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}