]> git.baikalelectronics.ru Git - kernel.git/commit
net: hisilicon: hns: Replace mdelay() with msleep()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 08:01:41 +0000 (16:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jul 2018 20:45:14 +0000 (13:45 -0700)
commit870fffc227b1ea7a6799da43fe840494af1be0e7
treebf49c657c4a5a668f2a1a0f92cd6aa7bf1e3f03d
parent71d7d69888948ed218dd5423e037e3f146800a49
net: hisilicon: hns: Replace mdelay() with msleep()

hns_ppe_common_init_hw() and hns_xgmac_init() are never
called in atomic context.
They call mdelay() to busily wait, which is not necessary.
mdelay() can be replaced with msleep().

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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c