Skip to content

Commit

Permalink
net: neterion: vxge: remove redundant continue statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Jun 18, 2021
1 parent 275b51c commit d1434cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/ethernet/neterion/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d1434cf

Please sign in to comment.