net: ll_temac: Remove unused tx_bd_next struct field
authorEsben Haabendal <esben@geanix.com>
Fri, 28 Feb 2020 07:56:57 +0000 (08:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Mar 2020 05:30:43 +0000 (21:30 -0800)
The tx_bd_next field was included in the initial commit,
commit 92744989533c ("net: add Xilinx ll_temac device driver"),
but has never had any real use.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac.h
drivers/net/ethernet/xilinx/ll_temac_main.c

index 53fb8141f1a673e7e2be3a25d0873d8d26451eab..463ef9eaf42dcd581c88d16b7d80d4dfae77e251 100644 (file)
@@ -372,7 +372,6 @@ struct temac_local {
        struct cdmac_bd *rx_bd_v;
        dma_addr_t rx_bd_p;
        int tx_bd_ci;
-       int tx_bd_next;
        int tx_bd_tail;
        int rx_bd_ci;
        int rx_bd_tail;
index 9461acec6f70f8a0e9d7de88444dd573cc0c8551..b0fab9a2056fc68b62f73ce20049a7ad3ceee9b2 100644 (file)
@@ -387,7 +387,6 @@ static int temac_dma_bd_init(struct net_device *ndev)
 
        /* Init descriptor indexes */
        lp->tx_bd_ci = 0;
-       lp->tx_bd_next = 0;
        lp->tx_bd_tail = 0;
        lp->rx_bd_ci = 0;
        lp->rx_bd_tail = RX_BD_NUM - 1;