]> www.infradead.org Git - users/willy/xarray.git/commit
rtl8xxxu: Simplify locking of a skb list accesses
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 5 Apr 2021 09:09:14 +0000 (11:09 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 17 Apr 2021 17:55:09 +0000 (20:55 +0300)
commit431eb49e87ed8de7728b879e7288d85fb87f83ff
treea82aa19896e5b051b1b678c81e177f0b8ac2472b
parent2f51061edab942988b1a3c057d21228e938603db
rtl8xxxu: Simplify locking of a skb list accesses

The 'c2hcmd_lock' spinlock is only used to protect some __skb_queue_tail()
and __skb_dequeue() calls.
Use the lock provided in the skb itself and call skb_queue_tail() and
skb_dequeue(). These functions already include the correct locking.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/8bcec6429615aeb498482dc7e1955ce09b456585.1617613700.git.christophe.jaillet@wanadoo.fr
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c