Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c29dde4 authored by hayeswang's avatar hayeswang Committed by David S. Miller
Browse files

r8152: remove the duplicate init for the list of rx_done



The INIT_LIST_HEAD(&tp->rx_done) would be done in rtl_start_rx(),
so remove the unnecessary one in alloc_all_mem().

Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d3f15dbd
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1255,7 +1255,6 @@ static int alloc_all_mem(struct r8152 *tp)

	spin_lock_init(&tp->rx_lock);
	spin_lock_init(&tp->tx_lock);
	INIT_LIST_HEAD(&tp->rx_done);
	INIT_LIST_HEAD(&tp->tx_free);
	skb_queue_head_init(&tp->tx_queue);