[alsa-devel] [PATCH 1/3] ALSA: line6: Remove double line6_pcm_release() after failed acquire.

Andrej Krutak dev at andree.sk
Thu Aug 18 23:52:10 CEST 2016


If there's an error, pcm is released in line6_pcm_acquire already.

Signed-off-by: Andrej Krutak <dev at andree.sk>
---
 sound/usb/line6/pcm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/usb/line6/pcm.c b/sound/usb/line6/pcm.c
index 204cc07..2bc8879 100644
--- a/sound/usb/line6/pcm.c
+++ b/sound/usb/line6/pcm.c
@@ -55,7 +55,6 @@ static int snd_line6_impulse_volume_put(struct snd_kcontrol *kcontrol,
 		err = line6_pcm_acquire(line6pcm, LINE6_STREAM_IMPULSE);
 		if (err < 0) {
 			line6pcm->impulse_volume = 0;
-			line6_pcm_release(line6pcm, LINE6_STREAM_IMPULSE);
 			return err;
 		}
 	} else {
-- 
1.9.1



More information about the Alsa-devel mailing list