diff options
author | Thomas Falcon <tlfalcon@linux.ibm.com> | 2019-12-11 16:38:39 +0100 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-12-14 02:23:10 +0100 |
commit | 8f9cc1ee296275d27770245cbd247a4952bbb2be (patch) | |
tree | e083e316def4cc65a7ae87882e38c912e349c485 /drivers | |
parent | ipv6/addrconf: only check invalid header values when NETLINK_F_STRICT_CHK is set (diff) | |
download | linux-8f9cc1ee296275d27770245cbd247a4952bbb2be.tar.xz linux-8f9cc1ee296275d27770245cbd247a4952bbb2be.zip |
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: 476d96ca9cc5 ("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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index c90080781924..830791ab4619 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -184,7 +184,7 @@ static int ibmvnic_wait_for_completion(struct ibmvnic_adapter *adapter, netdev_err(netdev, "Device down!\n"); return -ENODEV; } - if (retry--) + if (!retry--) break; if (wait_for_completion_timeout(comp_done, div_timeout)) return 0; |