ALSA: hda/realtek: simplify the return of comp_bind()
PATCH 1/1 ALSA: hda/realtek: simplify the return of comp_bind()
After commit 23904f7b2518 ("ALSA: hda: cs35l41: Remove suspend/resume hda hooks"), the return of comp_bind() can be simplified. No functional changed.
Signed-off-by Yang Yingliang <[email protected]>
--- sound/pci/hda/patch_realtek.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
sound/pci/hda/patch_realtek.c +1 -6
@@ -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)
Signature · 1 line
2.25.1
Quoted 6 lines · Yang Yingliang
After commit
23904f7b2518("ALSA: hda: cs35l41: Remove suspend/resume hda hooks"), the return ofcomp_bind()can be simplified. No functional changed.Signed-off-by Yang Yingliang <[email protected]>
Applied now.
thanks,
Takashi