rtl818x: Replace mdelay() with msleep() in rtl8225se_rf_init
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 08:50:45 +0000 (16:50 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jul 2018 07:26:46 +0000 (10:26 +0300)
commit622e938240db71365958824cc91af1bb5c481f5e
treeb4249dce7d52dc1bff773de1bb574693a013601b
parent5685bee313e9e8577faebcb349706e299f486db5
rtl818x: Replace mdelay() with msleep() in rtl8225se_rf_init

rtl8225se_rf_init() is never called in atomic context.
It calls mdelay() to busily wait, which is not necessary.
mdelay() can be replaced with msleep().
This patch only replaces the mdelay() that has >20ms time to wait.

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl818x/rtl8180/rtl8225se.c