rtlwifi: rtl8192de: Use DEFINE_SPINLOCK() for spinlock
authorGuobin Huang <huangguobin4@huawei.com>
Tue, 6 Apr 2021 12:16:46 +0000 (20:16 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 17 Apr 2021 17:34:12 +0000 (20:34 +0300)
commite9642be26a372013e47801e1dd98e8f4dcf78f50
tree1ac1801fbfe7ccf17c4a2113dae830b82cc50af7
parentfb98734f79365d5aa0737a6fec0a8c84c05c8eaa
rtlwifi: rtl8192de: Use DEFINE_SPINLOCK() for spinlock

spinlock can be initialized automatically with DEFINE_SPINLOCK()
rather than explicitly calling spin_lock_init().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Guobin Huang <huangguobin4@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1617711406-49649-1-git-send-email-huangguobin4@huawei.com
drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c