Skip to content

Commit 2821d50

Browse files
vladimirolteandavem330
authored andcommitted
net: dsa: tag_sja1105: Slightly improve the Xmas tree in sja1105_xmit
This is a cosmetic patch that makes the dp, tx_vid, queue_mapping and pcp local variable definitions a bit closer in length, so they don't look like an eyesore as much. The 'ds' variable is not used otherwise, except for ds->dp. Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a68578c commit 2821d50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/dsa/tag_sja1105.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ static struct sk_buff *sja1105_xmit(struct sk_buff *skb,
100100
struct net_device *netdev)
101101
{
102102
struct dsa_port *dp = dsa_slave_to_port(netdev);
103-
struct dsa_switch *ds = dp->ds;
104-
u16 tx_vid = dsa_8021q_tx_vid(ds, dp->index);
103+
u16 tx_vid = dsa_8021q_tx_vid(dp->ds, dp->index);
105104
u16 queue_mapping = skb_get_queue_mapping(skb);
106105
u8 pcp = netdev_txq_to_tc(netdev, queue_mapping);
107106

0 commit comments

Comments
 (0)