ALSA: ac97: ac97_patch: Simplify patch_vt1613_specific()
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 6 Mar 2015 16:41:42 +0000 (13:41 -0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Mar 2015 16:47:27 +0000 (17:47 +0100)
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>
sound/pci/ac97/ac97_patch.c

index eca22100f70d4a877d68208ae8ec6d58d48a73bc..f4234edb878c7a01ebbc296bf52cb0debb24b087 100644 (file)
@@ -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 = {