Skip to content

Commit 7e4379e

Browse files
andree182tiwai
authored andcommitted
ALSA: line6: Remove double line6_pcm_release() after failed acquire.
If there's an error, pcm is released in line6_pcm_acquire already. Fixes: 247d95e ('ALSA: line6: Handle error from line6_pcm_acquire()') Cc: <[email protected]> # v4.0+ Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Andrej Krutak <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent a52ff34 commit 7e4379e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sound/usb/line6/pcm.c

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ static int snd_line6_impulse_volume_put(struct snd_kcontrol *kcontrol,
5555
err = line6_pcm_acquire(line6pcm, LINE6_STREAM_IMPULSE);
5656
if (err < 0) {
5757
line6pcm->impulse_volume = 0;
58-
line6_pcm_release(line6pcm, LINE6_STREAM_IMPULSE);
5958
return err;
6059
}
6160
} else {

0 commit comments

Comments
 (0)