diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-07-27 11:55:28 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-07-27 12:48:07 +0300 |
commit | df3f0347fd856272ca9fdbb6e691b7b512b7acb4 (patch) | |
tree | 04c6ac57507626815273058742566eb07333f9c9 /sound/pci | |
parent | 13e9a3edb4b702b701b5a9553b830aa3d2a3e3e9 (diff) | |
download | linux-df3f0347fd856272ca9fdbb6e691b7b512b7acb4.tar.xz |
ALSA: usb-audio: quirks: Replace mdelay() with msleep() and usleep_range()
snd_usb_select_mode_quirk(), snd_usb_set_interface_quirk() and
snd_usb_ctl_msg_quirk() are never called in atomic context.
They call mdelay() to busily wait, which is not necessary.
mdelay() can be replaced with msleep() and usleep_range().
This is found by a static analysis tool named DCNS written by myself.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions