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>
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 = {