aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/nvidia/forcedeth.c
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2018-07-27 16:01:41 +0800
committerDavid S. Miller <davem@davemloft.net>2018-07-27 13:45:14 -0700
commit89036f233a45d8d17c2de94850bd5e63f185da3d (patch)
treebf49c657c4a5a668f2a1a0f92cd6aa7bf1e3f03d /drivers/net/ethernet/nvidia/forcedeth.c
parentnet: amd: pcnet32: Replace GFP_ATOMIC with GFP_KERNEL in pcnet32_alloc_ring() (diff)
downloadlinux-dev-89036f233a45d8d17c2de94850bd5e63f185da3d.tar.xz
linux-dev-89036f233a45d8d17c2de94850bd5e63f185da3d.zip
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>
Diffstat (limited to 'drivers/net/ethernet/nvidia/forcedeth.c')
0 files changed, 0 insertions, 0 deletions