Skip to content

Commit 5b3b396

Browse files
vladimirolteandavem330
authored andcommitted
net: dsa: sja1105: remove debugging code in sja1105_vl_gate
This shouldn't be there. Fixes: 834f893 ("net: dsa: sja1105: implement tc-gate using time-triggered virtual links") Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b64ee48 commit 5b3b396

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/net/dsa/sja1105/sja1105_vl.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -588,14 +588,10 @@ int sja1105_vl_gate(struct sja1105_private *priv, int port,
588588

589589
if (priv->vlan_state == SJA1105_VLAN_UNAWARE &&
590590
key->type != SJA1105_KEY_VLAN_UNAWARE_VL) {
591-
dev_err(priv->ds->dev, "1: vlan state %d key type %d\n",
592-
priv->vlan_state, key->type);
593591
NL_SET_ERR_MSG_MOD(extack,
594592
"Can only gate based on DMAC");
595593
return -EOPNOTSUPP;
596594
} else if (key->type != SJA1105_KEY_VLAN_AWARE_VL) {
597-
dev_err(priv->ds->dev, "2: vlan state %d key type %d\n",
598-
priv->vlan_state, key->type);
599595
NL_SET_ERR_MSG_MOD(extack,
600596
"Can only gate based on {DMAC, VID, PCP}");
601597
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)