summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/neterion
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-17 14:14:49 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-18 20:29:40 +0200
commitd1434cf513583a6abe5b65f1824c741e9e7af764 (patch)
treeb4302aaae9eb4206596cf9d88cc755e483add66d /drivers/net/ethernet/neterion
parentdrivers: net: netdevsim: fix devlink_trap selftests failing (diff)
downloadlinux-d1434cf513583a6abe5b65f1824c741e9e7af764.tar.xz
linux-d1434cf513583a6abe5b65f1824c741e9e7af764.zip
net: neterion: vxge: remove redundant continue statement
The continue statement at the end of a for-loop has no effect, invert the if expression and remove the continue. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion')
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c
index 0528b8f49061..82eef4c72f01 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-main.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c
@@ -3678,10 +3678,9 @@ static int vxge_config_vpaths(struct vxge_hw_device_config *device_config,
driver_config->vpath_per_dev = 1;
for (i = 0; i < VXGE_HW_MAX_VIRTUAL_PATHS; i++)
- if (!vxge_bVALn(vpath_mask, i, 1))
- continue;
- else
+ if (vxge_bVALn(vpath_mask, i, 1))
default_no_vpath++;
+
if (default_no_vpath < driver_config->vpath_per_dev)
driver_config->vpath_per_dev = default_no_vpath;