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: Xiaojun Sang <xsang@codeaurora.org>
This commit is contained in:
Xiaojun Sang 2018-03-20 16:01:41 +08:00 committed by Gerrit - the friendly Code Review server
parent d370eb7911
commit 992b2f0fa1

View file

@ -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++) {