diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-06-17 14:14:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-18 20:29:40 +0200 |
commit | d1434cf513583a6abe5b65f1824c741e9e7af764 (patch) | |
tree | b4302aaae9eb4206596cf9d88cc755e483add66d /drivers/net/ethernet/neterion | |
parent | drivers: net: netdevsim: fix devlink_trap selftests failing (diff) | |
download | linux-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.c | 5 |
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; |