提交 5371fc0e 编写于 作者: F Fabio Estevam 提交者: Takashi Iwai

ALSA: ac97: ac97_patch: Simplify patch_vt1613_specific()

We can simplify the code by returning patch_build_controls() directly.
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 d6482288
......@@ -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 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册