]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: use DEFINE_SPINLOCK() for spinlock
authorGuobin Huang <huangguobin4@huawei.com>
Sat, 27 Mar 2021 09:59:20 +0000 (17:59 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 08:17:13 +0000 (10:17 +0200)
commit7cfa893077bc34bc7d40d2a1681b8511afe96072
treede997e0d546cd99d30ac051ac59ae125c2e1d88e
parentee9ae70b7287634fd24d5fe16bc5758ebfe63f93
mac80211_hwsim: 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>
Link: https://lore.kernel.org/r/1616839160-6654-1-git-send-email-huangguobin4@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c