staging: qlge: change msleep to usleep_range
authorTobias Alam <tobiasalam@gmail.com>
Mon, 14 Jun 2021 02:11:30 +0000 (22:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Jun 2021 14:40:34 +0000 (16:40 +0200)
commit7c0ae9e01d90a3636ba2e43e8d41329833980edf
treeb225ed57f5c951eaa1402833122973cc8bf02384
parent9866b3133b70cf7799a121cebdf4cf744c30e103
staging: qlge: change msleep to usleep_range

This patch changes msleep() to usleep_range() based on
Documentation/timers/timers-howto.txt. It suggests using usleep_range()
for small msec(1ms - 20ms) because msleep() will often sleep longer than
the desired value. Issue found by checkpatch.

Signed-off-by: Tobias Alam <tobiasalam@gmail.com>
Link: https://lore.kernel.org/r/YMa60p5dl0LMV/9D@tobias-VirtualBox
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_ethtool.c