Skip to contentSkip to conversation

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

PATCH In review Yang Yingliang 2 participants 2 messages Oct 14, 2022 – Oct 17, 2022 Sound

lore
Share & tools
lore
#0 lore raw

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.

---
 sound/pci/hda/patch_realtek.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
sound/pci/hda/patch_realtek.c +1 -6
index e6c4bb5fa041..7c177426bf30 100644
@@ -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
#1 lore raw
Quoted 6 lines · Yang Yingliang

After commit 23904f7b2518 ("ALSA: hda: cs35l41: Remove suspend/resume hda hooks"), the return of comp_bind() can be simplified. No functional changed.

Applied now.

thanks,

Takashi