Skip to content

Commit

Permalink
net: mvneta: get rid of skb in mvneta_rx_queue
Browse files Browse the repository at this point in the history
Remove skb pointer in mvneta_rx_queue data structure since it is no
longer used

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Lorenzo Bianconi authored and David S. Miller committed Jul 20, 2020
1 parent 7d1643e commit 89f4a19
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/net/ethernet/marvell/mvneta.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,6 @@ struct mvneta_rx_queue {
int first_to_refill;
u32 refill_num;

/* pointer to uncomplete skb buffer */
struct sk_buff *skb;
int left_size;
};

Expand Down Expand Up @@ -3362,9 +3360,6 @@ static void mvneta_rxq_deinit(struct mvneta_port *pp,
{
mvneta_rxq_drop_pkts(pp, rxq);

if (rxq->skb)
dev_kfree_skb_any(rxq->skb);

if (rxq->descs)
dma_free_coherent(pp->dev->dev.parent,
rxq->size * MVNETA_DESC_ALIGNED_SIZE,
Expand All @@ -3377,7 +3372,6 @@ static void mvneta_rxq_deinit(struct mvneta_port *pp,
rxq->descs_phys = 0;
rxq->first_to_refill = 0;
rxq->refill_num = 0;
rxq->skb = NULL;
rxq->left_size = 0;
}

Expand Down

0 comments on commit 89f4a19

Please sign in to comment.