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

Commit 1305f2b2 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

greybus: es2: fix error return code in ap_probe()



Fix to return a negative error code from the es2_arpc_in_enable() error
handling case instead of 0, as done elsewhere in this function.

Fixes: 9d9d3777 ("greybus: es2: Add a new bulk in endpoint for APBridgeA RPC")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 25633d1f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1548,7 +1548,8 @@ static int ap_probe(struct usb_interface *interface,
	INIT_LIST_HEAD(&es2->arpcs);
	spin_lock_init(&es2->arpc_lock);

	if (es2_arpc_in_enable(es2))
	retval = es2_arpc_in_enable(es2);
	if (retval)
		goto error;

	retval = gb_hd_add(hd);