]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Drop superfluous error message after disconnection
authorTakashi Iwai <tiwai@suse.de>
Thu, 14 Oct 2021 13:06:35 +0000 (15:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 14 Oct 2021 14:51:37 +0000 (16:51 +0200)
commitece4aa69ed2baf5c9bff9f09831c026454581e29
tree176e55bb8aa9f77cf16a7b3f5306237189957704
parentcba611449c5709e9c5e34ea1dcc01df6a8dd4c43
ALSA: usb-audio: Drop superfluous error message after disconnection

The error from snd_usb_lock_shutdown() indicates that the device is
disconnected, hence it makes no sense to show any further control
message error in get_ctl_value_v2().  Return the error directly
instead.

Tested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20211014130636.17860-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c