Commit a8dfb850 authored by Yang Yingliang's avatar Yang Yingliang Committed by Takashi Iwai

ALSA: hda/realtek: simplify the return of comp_bind()

After commit 23904f7b ("ALSA: hda: cs35l41: Remove
suspend/resume hda hooks"), the return of comp_bind()
can be simplified. No functional changed.
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221014013640.1142107-1-yangyingliang@huawei.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9abf2313
......@@ -6654,13 +6654,8 @@ static int comp_bind(struct device *dev)
{
struct hda_codec *cdc = dev_to_hda_codec(dev);
struct alc_spec *spec = cdc->spec;
int ret;
ret = component_bind_all(dev, spec->comps);
if (ret)
return ret;
return 0;
return component_bind_all(dev, spec->comps);
}
static void comp_unbind(struct device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment