[PATCH] net: neterion: vxge: remove redundant continue statement

Subsystems: networking drivers, the rest

STALE1882d

2 messages, 2 authors, 2021-06-18 · open the first message on its own page

[PATCH] net: neterion: vxge: remove redundant continue statement

From: Colin King <hidden>
Date: 2021-06-17 12:14:57

From: Colin Ian King <redacted>

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 <redacted>
---
 drivers/net/ethernet/neterion/vxge/vxge-main.c | 5 ++---
 1 file 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;
 
-- 
2.31.1

Re: [PATCH] net: neterion: vxge: remove redundant continue statement

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-06-18 18:40:08

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Thu, 17 Jun 2021 13:14:49 +0100 you wrote:
From: Colin Ian King <redacted>

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 <redacted>

[...]
Here is the summary with links:
  - net: neterion: vxge: remove redundant continue statement
    https://git.kernel.org/netdev/net-next/c/d1434cf51358

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help