]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Replace mdelay() with msleep() in igb_integrated_phy_loopback()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 08:07:38 +0000 (16:07 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 24 Aug 2018 15:52:35 +0000 (08:52 -0700)
commita2a2131ac7a28b4289c304154b53dc03fe279b2e
tree8019a3061aa13e6a5d2e8fccd81b44788e8813c4
parent9075af98f70e54ea4c9eed3649c1b4758162bb78
igb: Replace mdelay() with msleep() in igb_integrated_phy_loopback()

igb_integrated_phy_loopback() 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>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c