aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2022-06-26 20:06:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-27 13:50:38 +0200
commit80394da44b7be8f5e474b048aed6ceaf0082c2b4 (patch)
tree7ea4885c786c654184a9ee787250f51fb180f8e9 /drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
parentstaging: r8188eu: core/rtw_recv.c: clean up nested if statements (diff)
downloadlinux-dev-80394da44b7be8f5e474b048aed6ceaf0082c2b4.tar.xz
linux-dev-80394da44b7be8f5e474b048aed6ceaf0082c2b4.zip
staging: r8188eu: remove rtw_usleep_os
Remove the rtw_usleep_os helper function. There are only two callers, both of which call rtw_usleep_os(100). This is equivalent to msleep(1). Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Tested-by: Pavel Skripkin <paskripkin@gmail.com> Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220626180603.287054-1-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/hal/rtl8188e_hal_init.c')
-rw-r--r--drivers/staging/r8188eu/hal/rtl8188e_hal_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
index 5549e7be334a..5b65313e0b9d 100644
--- a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
+++ b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
@@ -243,7 +243,7 @@ static int efuse_read_phymap_from_txpktbuf(
if (reg)
break;
- rtw_usleep_os(100);
+ msleep(1);
} while (time_before(jiffies, timeout));
/* data from EEPROM needs to be in LE */