Skip to contentSkip to conversation

staging: rtl8192u: Replace mdelay with msleep in rtl8192_usb_probe

PATCH New Jia-Ju Bai 1 participant 1 message Dec 24, 2017 Staging

lore
Share & tools
lore

Jia-Ju Bai

author
#0 lore raw

PATCH 1/1 staging: rtl8192u: Replace mdelay with msleep in rtl8192_usb_probe

rtl8192_usb_probe is not called in an interrupt handler nor holding a spinlock.
The function mdelay in it can be replaced with msleep, to avoid busy wait.

---
 drivers/staging/rtl8192u/r8192U_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192u/r8192U_core.c +1 -1
index 09f66b3..3c300f7 100644
@@ -4998,7 +4998,7 @@ static int rtl8192_usb_probe(struct usb_interface *intf,
 	kfree(priv->pFirmware);
 	priv->pFirmware = NULL;
 	rtl8192_usb_deleteendpoints(dev);
-	mdelay(10);
+	msleep(10);
 	free_ieee80211(dev);
 
 	RT_TRACE(COMP_ERR, "wlan driver load failed\n");
Signature · 1 line
1.7.9.5