aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/6fire
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-11-05 16:18:39 +0100
committerTakashi Iwai <tiwai@suse.de>2019-11-06 15:47:41 +0100
commit1158e89c9d8f5e676870ab0a729de16ac39e59af (patch)
tree1dd137dc4a66c9214730e1efbfffd778bc3917c6 /sound/usb/6fire
parentALSA: usb: Remove superfluous snd_dma_continuous_data() (diff)
downloadlinux-dev-1158e89c9d8f5e676870ab0a729de16ac39e59af.tar.xz
linux-dev-1158e89c9d8f5e676870ab0a729de16ac39e59af.zip
ALSA: 6fire: Drop the dead code
A few error handling code was forgotten where it never reaches. Drop it. Link: https://lore.kernel.org/r/20191105151856.10785-8-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/6fire')
-rw-r--r--sound/usb/6fire/pcm.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/usb/6fire/pcm.c b/sound/usb/6fire/pcm.c
index 88ac1c4ee163..4ded944e5d5d 100644
--- a/sound/usb/6fire/pcm.c
+++ b/sound/usb/6fire/pcm.c
@@ -660,13 +660,6 @@ int usb6fire_pcm_init(struct sfire_chip *chip)
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_ops);
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_ops);
- if (ret) {
- usb6fire_pcm_buffers_destroy(rt);
- kfree(rt);
- dev_err(&chip->dev->dev,
- "error preallocating pcm buffers.\n");
- return ret;
- }
rt->instance = pcm;
chip->pcm = rt;