]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8188eu: core: fixed msleep < 20ms can sleep for up to 20ms warning in...
authorJiayi Ye <yejiayily@gmail.com>
Mon, 20 Oct 2014 06:04:55 +0000 (14:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2014 04:20:44 +0000 (12:20 +0800)
This patch fixes following checkpatch.pl warning:
WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt

Signed-off-by: Jiayi Ye <yejiayily@gmail.comi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_efuse.c

index 7006088d1ad034148304c8ffded3edb7d05de39c..e037c43c28371d9cbb1774d4efa8f85b2f331b8c 100644 (file)
@@ -250,7 +250,7 @@ static void efuse_read_phymap_from_txpktbuf(
                while (!(reg_0x143 = usb_read8(adapter, REG_TXPKTBUF_DBG)) &&
                       (passing_time = rtw_get_passing_time_ms(start)) < 1000) {
                        DBG_88E("%s polling reg_0x143:0x%02x, reg_0x106:0x%02x\n", __func__, reg_0x143, usb_read8(adapter, 0x106));
-                       msleep(1);
+                       usleep_range(1000, 2000);
                }
 
                lo32 = usb_read32(adapter, REG_PKTBUF_DBG_DATA_L);