]> git.karo-electronics.de Git - linux-beck.git/commit
i40evf: avoid an extra msleep while
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 5 Oct 2016 16:30:45 +0000 (09:30 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 31 Oct 2016 21:26:40 +0000 (14:26 -0700)
commit7d3f04af69bed2db87d6a72d100e182f773e54b7
treeda12cca751307fadc235605ee012753faeac86d0
parent124905012db8bdeebf5a7d1ddc841eaadda84a75
i40evf: avoid an extra msleep while

Remove the second call to msleep outside the loop, and move the msleep
within the loop as the first step. This guarantees that a single loop
will wait the minimum time first, and then after the reset finishes we
no longer need an extra msleep.

Change-ID: Ib2086f0a142402b614f67846bc091754203a0b9a
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c