diff mbox series

[-next] ALSA: hda/realtek: simplify the return of comp_bind()

Message ID 20221014013640.1142107-1-yangyingliang@huawei.com (mailing list archive)
State Accepted
Commit a8dfb85095dd8b884ee962e64b16ef52bc54119d
Headers show
Series [-next] ALSA: hda/realtek: simplify the return of comp_bind() | expand

Commit Message

Yang Yingliang Oct. 14, 2022, 1:36 a.m. UTC
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 <yangyingliang@huawei.com>
---
 sound/pci/hda/patch_realtek.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Comments

Takashi Iwai Oct. 17, 2022, 11:10 a.m. UTC | #1
On Fri, 14 Oct 2022 03:36:40 +0200,
Yang Yingliang wrote:
> 
> 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 <yangyingliang@huawei.com>

Applied now.


thanks,

Takashi
diff mbox series

Patch

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index e6c4bb5fa041..7c177426bf30 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -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)