mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
net: ag71xx: replace INIT_LIST_HEAD
LIST_HEAD is a shorter macro. No real difference. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://patch.msgid.link/20240930181823.288892-5-rosenp@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
94656823c1
commit
8b4ed4d5ff
|
|
@ -1598,8 +1598,8 @@ static int ag71xx_rx_packets(struct ag71xx *ag, int limit)
|
|||
int ring_mask, ring_size, done = 0;
|
||||
unsigned int pktlen_mask, offset;
|
||||
struct ag71xx_ring *ring;
|
||||
struct list_head rx_list;
|
||||
struct sk_buff *skb;
|
||||
LIST_HEAD(rx_list);
|
||||
|
||||
ring = &ag->rx_ring;
|
||||
pktlen_mask = ag->dcfg->desc_pktlen_mask;
|
||||
|
|
@ -1610,8 +1610,6 @@ static int ag71xx_rx_packets(struct ag71xx *ag, int limit)
|
|||
netif_dbg(ag, rx_status, ndev, "rx packets, limit=%d, curr=%u, dirty=%u\n",
|
||||
limit, ring->curr, ring->dirty);
|
||||
|
||||
INIT_LIST_HEAD(&rx_list);
|
||||
|
||||
while (done < limit) {
|
||||
unsigned int i = ring->curr & ring_mask;
|
||||
struct ag71xx_desc *desc = ag71xx_ring_desc(ring, i);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user