mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
ALSA: bebob: code refactoring for error path to start duplex stream
This commit removes useless procedures to stop packet streaming. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
5e818ac21f
commit
d173265ae3
@ -650,8 +650,6 @@ int snd_bebob_stream_start_duplex(struct snd_bebob *bebob)
|
|||||||
|
|
||||||
if (!amdtp_stream_wait_callback(&bebob->rx_stream,
|
if (!amdtp_stream_wait_callback(&bebob->rx_stream,
|
||||||
CALLBACK_TIMEOUT)) {
|
CALLBACK_TIMEOUT)) {
|
||||||
amdtp_stream_stop(&bebob->rx_stream);
|
|
||||||
break_both_connections(bebob);
|
|
||||||
err = -ETIMEDOUT;
|
err = -ETIMEDOUT;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user