]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: regulatory: use DEFINE_SPINLOCK() for spinlock
authorQiheng Lin <linqiheng@huawei.com>
Thu, 25 Mar 2021 14:38:54 +0000 (22:38 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 08:17:32 +0000 (10:17 +0200)
commitdbee7fc2b04ea76e9a6be2119118408f4c29f670
tree19b0147f8c4af4e007bca429197cdf9ba78cf603
parent8f9aad875558c88ab66f43753bd192c2d7664b67
cfg80211: regulatory: 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: Qiheng Lin <linqiheng@huawei.com>
Link: https://lore.kernel.org/r/20210325143854.13186-1-linqiheng@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c