diff options
author | Jia-Ju Bai | 2018-07-27 10:25:07 +0200 |
---|---|---|
committer | David S. Miller | 2018-07-27 22:45:14 +0200 |
commit | d818c59a8f490ed8d07bdb4cc175dec97030df26 (patch) | |
tree | 42a774525820092c530ea1707f9c15c5ee793f0d /tools/scripts/Makefile.arch | |
parent | net: hisilicon: hns: Replace mdelay() with msleep() (diff) | |
download | kernel-qcow2-linux-d818c59a8f490ed8d07bdb4cc175dec97030df26.tar.gz kernel-qcow2-linux-d818c59a8f490ed8d07bdb4cc175dec97030df26.tar.xz kernel-qcow2-linux-d818c59a8f490ed8d07bdb4cc175dec97030df26.zip |
net: jme: Replace mdelay() with msleep() and usleep_range() in jme_wait_link()
jme_wait_link() is never called in atomic context.
It calls mdelay() to busily wait, which is not necessary.
mdelay() can be replaced with msleep() and usleep_range().
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 'tools/scripts/Makefile.arch')
0 files changed, 0 insertions, 0 deletions