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

Commit 992b2f0f authored by Xiaojun Sang's avatar Xiaojun Sang Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: codecs: wcd: avoid redundant component unbind



Component unbind happens in component_bind_all, if component
bind fails. There is no need to call extra component_unbind_all.

Change-Id: I4ff2aececc5e10c5c4cfbe71778630c621768349
Signed-off-by: default avatarXiaojun Sang <xsang@codeaurora.org>
parent d370eb79
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1059,8 +1059,10 @@ static int wdsp_mgr_bind(struct device *dev)
		dev_info(dev, "%s: create_ramdump_device failed\n", __func__);

	ret = component_bind_all(dev, wdsp->ops);
	if (ret < 0)
	if (ret < 0) {
		WDSP_ERR(wdsp, "component_bind_all failed %d\n", ret);
		return ret;
	}

	/* Make sure all components registered ops */
	for (idx = 0; idx < WDSP_CMPNT_TYPE_MAX; idx++) {