net/ibmvnic: Fix typo in retry check
This conditional is missing a bang, with the intent
being to break when the retry count reaches zero.
Fixes: 476d96ca9c
("ibmvnic: Bound waits for device queries")
Suggested-by: Juliet Kim <julietk@linux.vnet.ibm.com>
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
This commit is contained in:
parent
2beb6d2901
commit
8f9cc1ee29
|
@ -184,7 +184,7 @@ static int ibmvnic_wait_for_completion(struct ibmvnic_adapter *adapter,
|
||||||
netdev_err(netdev, "Device down!\n");
|
netdev_err(netdev, "Device down!\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
if (retry--)
|
if (!retry--)
|
||||||
break;
|
break;
|
||||||
if (wait_for_completion_timeout(comp_done, div_timeout))
|
if (wait_for_completion_timeout(comp_done, div_timeout))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue