]> git.baikalelectronics.ru Git - kernel.git/commit
net: adaptec: Replace mdelay() with msleep() in starfire_init_one()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 03:51:06 +0000 (11:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jul 2018 04:24:23 +0000 (21:24 -0700)
commitaf72ab27057cd917f44732d824d7159cf9879c53
treea187ab13b2616cb9a62b458e9a409d8ddf9b363b
parentb66edcf0c275252c3173184ddd0a0fda8eb5acd1
net: adaptec: Replace mdelay() with msleep() in starfire_init_one()

starfire_init_one() is never called in atomic context.
It calls 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/adaptec/starfire.c