summaryrefslogtreecommitdiffstats
path: root/sound/pci/ac97/ac97_patch.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-03-06 17:41:42 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-06 17:47:27 +0100
commit5371fc0ecdf55b6811ade8a198de8ace2f4e5861 (patch)
treea35b0c95436844353120d7725a4ad82542c22db0 /sound/pci/ac97/ac97_patch.c
parentALSA: ac97: Add VT1613 AC97 codec support (diff)
downloadlinux-5371fc0ecdf55b6811ade8a198de8ace2f4e5861.tar.xz
linux-5371fc0ecdf55b6811ade8a198de8ace2f4e5861.zip
ALSA: ac97: ac97_patch: Simplify patch_vt1613_specific()
We can simplify the code by returning patch_build_controls() directly. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ac97/ac97_patch.c')
-rw-r--r--sound/pci/ac97/ac97_patch.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c
index eca22100f70d..f4234edb878c 100644
--- a/sound/pci/ac97/ac97_patch.c
+++ b/sound/pci/ac97/ac97_patch.c
@@ -3360,14 +3360,8 @@ AC97_SINGLE("DC Offset removal", 0x5a, 10, 1, 0),
static int patch_vt1613_specific(struct snd_ac97 *ac97)
{
- int err;
-
- err = patch_build_controls(ac97, &snd_ac97_controls_vt1613[0],
- ARRAY_SIZE(snd_ac97_controls_vt1613));
- if (err)
- return err;
-
- return 0;
+ return patch_build_controls(ac97, &snd_ac97_controls_vt1613[0],
+ ARRAY_SIZE(snd_ac97_controls_vt1613));
};
static const struct snd_ac97_build_ops patch_vt1613_ops = {