OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0af0a4f
)
ALSA: 6fire: Drop the dead code
author
Takashi Iwai
<tiwai@suse.de>
Tue, 5 Nov 2019 15:18:39 +0000
(16:18 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 6 Nov 2019 14:47:41 +0000
(15:47 +0100)
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>
sound/usb/6fire/pcm.c
patch
|
blob
|
history
diff --git
a/sound/usb/6fire/pcm.c
b/sound/usb/6fire/pcm.c
index
88ac1c4
..
4ded944
100644
(file)
--- 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;