net: neterion: vxge: remove redundant continue statement
authorColin Ian King <colin.king@canonical.com>
Thu, 17 Jun 2021 12:14:49 +0000 (13:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 18:29:40 +0000 (11:29 -0700)
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>
drivers/net/ethernet/neterion/vxge/vxge-main.c

index 0528b8f..82eef4c 100644 (file)
@@ -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;