Skip to content

Commit

Permalink
net: dsa: sja1105: remove sp->dp
Browse files Browse the repository at this point in the history
It looks like this field was never used since its introduction in commit
227d07a ("net: dsa: sja1105: Add support for traffic through
standalone ports") remove it.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vladimir Oltean authored and David S. Miller committed Sep 23, 2021
1 parent 428168f commit 68a81bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/net/dsa/sja1105/sja1105_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2965,7 +2965,6 @@ static int sja1105_setup_ports(struct sja1105_private *priv)
continue;

dp->priv = sp;
sp->dp = dp;
sp->data = tagger_data;
slave = dp->slave;
kthread_init_work(&sp->xmit_work, sja1105_port_deferred_xmit);
Expand Down
1 change: 0 additions & 1 deletion include/linux/dsa/sja1105.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ struct sja1105_port {
struct kthread_work xmit_work;
struct sk_buff_head xmit_queue;
struct sja1105_tagger_data *data;
struct dsa_port *dp;
bool hwts_tx_en;
};

Expand Down

0 comments on commit 68a81bb

Please sign in to comment.