diff options
author | Sudip Mukherjee <sudip@vectorindia.org> | 2014-11-14 05:39:05 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-14 08:16:36 -0500 |
commit | 387417b56295ef93d7cb38e1721826c85dfe897c (patch) | |
tree | f3f01a70e02e6fc5447dfbd299e681f4dc17dc83 /sound/pci/ice1712/juli.c | |
parent | 9547c0999e50fd624cab52f94a79f0fd27a7cb84 (diff) |
ALSA: ice1712: remove unneeded return statement
the functions:
snd_ice1712_akm4xxx_build_controls
snd_ice1712_build_pro_mixer
snd_ctl_add
snd_ak4114_build
prodigy192_ak4114_init
snd_ak4113_build
are all returning either 0 or a negetive error value.
so we can easily remove the check for a negative value and return
the value instead.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712/juli.c')
-rw-r--r-- | sound/pci/ice1712/juli.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/pci/ice1712/juli.c b/sound/pci/ice1712/juli.c index 7a6c0786c55c..a1536c1a7ed4 100644 --- a/sound/pci/ice1712/juli.c +++ b/sound/pci/ice1712/juli.c | |||
@@ -475,11 +475,8 @@ static int juli_add_controls(struct snd_ice1712 *ice) | |||
475 | return err; | 475 | return err; |
476 | 476 | ||
477 | /* only capture SPDIF over AK4114 */ | 477 | /* only capture SPDIF over AK4114 */ |
478 | err = snd_ak4114_build(spec->ak4114, NULL, | 478 | return snd_ak4114_build(spec->ak4114, NULL, |
479 | ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); | 479 | ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); |
480 | if (err < 0) | ||
481 | return err; | ||
482 | return 0; | ||
483 | } | 480 | } |
484 | 481 | ||
485 | /* | 482 | /* |