Skip to content

Commit

Permalink
net: ll_temac: Remove unused tx_bd_next struct field
Browse files Browse the repository at this point in the history
The tx_bd_next field was included in the initial commit,
commit 9274498 ("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>
  • Loading branch information
Esben Haabendal authored and David S. Miller committed Mar 1, 2020
1 parent b90feaf commit 9482cc9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/net/ethernet/xilinx/ll_temac.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion drivers/net/ethernet/xilinx/ll_temac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9482cc9

Please sign in to comment.