mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 12:05:10 +07:00
i40evf: remove unnecessary else
Since the if part of this statement contains a break, there's no reason for the else. Clean up the code and make it more obvious that the delay happens each time through the loop. Change-ID: I9292eaf7dd687688bdc401b8bd8d1d14f6944460 Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
348d499440
commit
c88e38cc50
@ -1513,8 +1513,7 @@ static void i40evf_reset_task(struct work_struct *work)
|
||||
if ((rstat_val != I40E_VFR_VFACTIVE) &&
|
||||
(rstat_val != I40E_VFR_COMPLETED))
|
||||
break;
|
||||
else
|
||||
msleep(I40EVF_RESET_WAIT_MS);
|
||||
msleep(I40EVF_RESET_WAIT_MS);
|
||||
}
|
||||
if (i == I40EVF_RESET_WAIT_COUNT) {
|
||||
adapter->flags &= ~I40EVF_FLAG_RESET_PENDING;
|
||||
@ -1528,8 +1527,7 @@ static void i40evf_reset_task(struct work_struct *work)
|
||||
if ((rstat_val == I40E_VFR_VFACTIVE) ||
|
||||
(rstat_val == I40E_VFR_COMPLETED))
|
||||
break;
|
||||
else
|
||||
msleep(I40EVF_RESET_WAIT_MS);
|
||||
msleep(I40EVF_RESET_WAIT_MS);
|
||||
}
|
||||
if (i == I40EVF_RESET_WAIT_COUNT) {
|
||||
struct i40evf_mac_filter *f, *ftmp;
|
||||
|
Loading…
Reference in New Issue
Block a user