From: Takashi Sakamoto Date: Sat, 15 Jun 2019 09:10:59 +0000 (+0900) Subject: ALSA: bebob: code refactoring for error path to start duplex stream X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~2554^2~49 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d173265ae36f8f6f76a507e2f529c351671269c0;p=mirror_ubuntu-focal-kernel.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/firewire/bebob/bebob_stream.c b/sound/firewire/bebob/bebob_stream.c index 6aab3dc99bef..9ef4663d13e5 100644 --- a/sound/firewire/bebob/bebob_stream.c +++ b/sound/firewire/bebob/bebob_stream.c @@ -650,8 +650,6 @@ int snd_bebob_stream_start_duplex(struct snd_bebob *bebob) if (!amdtp_stream_wait_callback(&bebob->rx_stream, CALLBACK_TIMEOUT)) { - amdtp_stream_stop(&bebob->rx_stream); - break_both_connections(bebob); err = -ETIMEDOUT; goto error; }