[PATCH][next] net: dsa: mv88e6xxx: fix broken if statement because of a stray semicolon

Subsystems: marvell 88e6xxx ethernet switch fabric driver, networking drivers, networking [dsa], the rest

STALE2453d

3 messages, 3 authors, 2019-11-12 · open the first message on its own page

[PATCH][next] net: dsa: mv88e6xxx: fix broken if statement because of a stray semicolon

From: Colin King <hidden>
Date: 2019-11-12 13:05:28

From: Colin Ian King <redacted>

There is a stray semicolon in an if statement that will cause a dev_err
message to be printed unconditionally. Fix this by removing the stray
semicolon.

Addresses-Coverity: ("Stay semicolon")
Fixes: f0942e00a1ab ("net: dsa: mv88e6xxx: Add support for port mirroring")
Signed-off-by: Colin Ian King <redacted>
---
 drivers/net/dsa/mv88e6xxx/chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c
index e8bf6ac1e0f4..3bd988529178 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.c
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
@@ -5317,7 +5317,7 @@ static void mv88e6xxx_port_mirror_del(struct dsa_switch *ds, int port,
 		if (chip->info->ops->set_egress_port(chip,
 						     direction,
 						     dsa_upstream_port(ds,
-								       port)));
+								       port)))
 			dev_err(ds->dev, "failed to set egress port\n");
 	}
 
-- 
2.20.1

Re: [PATCH][next] net: dsa: mv88e6xxx: fix broken if statement because of a stray semicolon

From: Andrew Lunn <andrew@lunn.ch>
Date: 2019-11-12 13:27:34

On Tue, Nov 12, 2019 at 01:05:23PM +0000, Colin King wrote:
From: Colin Ian King <redacted>

There is a stray semicolon in an if statement that will cause a dev_err
message to be printed unconditionally. Fix this by removing the stray
semicolon.

Addresses-Coverity: ("Stay semicolon")
Fixes: f0942e00a1ab ("net: dsa: mv88e6xxx: Add support for port mirroring")
Signed-off-by: Colin Ian King <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

Re: [PATCH][next] net: dsa: mv88e6xxx: fix broken if statement because of a stray semicolon

From: David Miller <davem@davemloft.net>
Date: 2019-11-12 19:32:10

From: Colin King <redacted>
Date: Tue, 12 Nov 2019 13:05:23 +0000
From: Colin Ian King <redacted>

There is a stray semicolon in an if statement that will cause a dev_err
message to be printed unconditionally. Fix this by removing the stray
semicolon.

Addresses-Coverity: ("Stay semicolon")
Fixes: f0942e00a1ab ("net: dsa: mv88e6xxx: Add support for port mirroring")
Signed-off-by: Colin Ian King <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help