]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-lib: remove WARN_ON() at destruction of AMDTP domain
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 6 Sep 2019 13:14:14 +0000 (22:14 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 7 Sep 2019 06:39:23 +0000 (08:39 +0200)
commite9d5430d5d9cd10dc5f96fbd8cf7f83595db3564
tree561303ff3305734615eed1ad2fa33080adb69c5f
parent1f87ac63d55ab8347b458aae670244f3821eed95
ALSA: firewire-lib: remove WARN_ON() at destruction of AMDTP domain

The destructor of AMDTP domain has WARN_ON() for the list of associated
AMDTP stream. Although this reminds a case that developers forget to
program consumer drivers to stop AMDTP domain, it hits when AMDTP domain
is not initialized yet. This occurs when initialization of sound card
fails as well and it's superfluous.

This commit removes the WARN_ON. Although the API to AMDTP domain does
nothing, it's left for future usage.

Fixes: 078156eabf45f ("ALSA: firewire-lib: add AMDTP domain structure to handle several isoc contexts")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20190906131414.15370-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream.c