]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: ethernet: ti: cpsw: drop cpsw_tx_packet_submit()
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 26 Apr 2019 17:12:30 +0000 (20:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Apr 2019 21:11:48 +0000 (17:11 -0400)
Drop unnecessary wrapper function cpsw_tx_packet_submit() which is used
only in one place.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c

index ddc259c45481ad2229c722aa9b7dfd46869d254c..4a26c72be0ccbcfbd63e3f5b2a8b4ce96abada18 100644 (file)
@@ -1500,17 +1500,6 @@ static void cpsw_get_ethtool_stats(struct net_device *ndev,
        }
 }
 
-static inline int cpsw_tx_packet_submit(struct cpsw_priv *priv,
-                                       struct sk_buff *skb,
-                                       struct cpdma_chan *txch)
-{
-       struct cpsw_common *cpsw = priv->cpsw;
-
-       skb_tx_timestamp(skb);
-       return cpdma_chan_submit(txch, skb, skb->data, skb->len,
-                                priv->emac_port + cpsw->data.dual_emac);
-}
-
 static inline void cpsw_add_dual_emac_def_ale_entries(
                struct cpsw_priv *priv, struct cpsw_slave *slave,
                u32 slave_port)
@@ -2138,7 +2127,9 @@ static netdev_tx_t cpsw_ndo_start_xmit(struct sk_buff *skb,
 
        txch = cpsw->txv[q_idx].ch;
        txq = netdev_get_tx_queue(ndev, q_idx);
-       ret = cpsw_tx_packet_submit(priv, skb, txch);
+       skb_tx_timestamp(skb);
+       ret = cpdma_chan_submit(txch, skb, skb->data, skb->len,
+                               priv->emac_port + cpsw->data.dual_emac);
        if (unlikely(ret != 0)) {
                cpsw_err(priv, tx_err, "desc submit failed\n");
                goto fail;