rtlwifi: Simplify locking of a skb list accesses
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 5 Apr 2021 07:57:14 +0000 (09:57 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 17 Apr 2021 17:32:04 +0000 (20:32 +0300)
commit1186006adee97ebb5b16db0e4ae64e8efb2c8f76
tree9b8d194b2c14676075dc7e9046e82ef4ff2bd762
parent987e9bcdd0b76a9d35f0b82013294429b401f7bb
rtlwifi: 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>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/99cf8894fd52202cb7ce2ec6e3200eef400bc071.1617609346.git.christophe.jaillet@wanadoo.fr
drivers/net/wireless/realtek/rtlwifi/base.c
drivers/net/wireless/realtek/rtlwifi/wifi.h