diff options
| author | Jia-Ju Bai <[email protected]> | 2018-07-27 16:55:28 +0800 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2018-07-27 11:48:07 +0200 |
| commit | df3f0347fd856272ca9fdbb6e691b7b512b7acb4 (patch) | |
| tree | 04c6ac57507626815273058742566eb07333f9c9 /tools/perf/scripts/python | |
| parent | 13e9a3edb4b702b701b5a9553b830aa3d2a3e3e9 (diff) | |
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions