Skip to content

Commit 4e4637b

Browse files
Colin Ian Kingdavem330
authored andcommitted
net: dsa: mv88e6xxx: fix broken if statement because of a stray semicolon
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: f0942e0 ("net: dsa: mv88e6xxx: Add support for port mirroring") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 084346b commit 4e4637b

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/dsa/mv88e6xxx

1 file changed

+1
-1
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5317,7 +5317,7 @@ static void mv88e6xxx_port_mirror_del(struct dsa_switch *ds, int port,
53175317
if (chip->info->ops->set_egress_port(chip,
53185318
direction,
53195319
dsa_upstream_port(ds,
5320-
port)));
5320+
port)))
53215321
dev_err(ds->dev, "failed to set egress port\n");
53225322
}
53235323

0 commit comments

Comments
 (0)