ALSA: hda/realtek: simplify the return of comp_bind()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 14 Oct 2022 01:36:40 +0000 (09:36 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Oct 2022 10:42:04 +0000 (12:42 +0200)
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>
Link: https://lore.kernel.org/r/20221014013640.1142107-1-yangyingliang@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index e6c4bb5fa041a179956dad4b3b7bf93b9752e92f..7c177426bf303b9adad9bdf48caeda55ea03fc23 100644 (file)
@@ -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)