]> git.baikalelectronics.ru Git - kernel.git/commit
rfkill: use DEFINE_SPINLOCK() for spinlock
authorGuobin Huang <huangguobin4@huawei.com>
Tue, 6 Apr 2021 12:11:56 +0000 (20:11 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 08:16:53 +0000 (10:16 +0200)
commitee9ae70b7287634fd24d5fe16bc5758ebfe63f93
treed0369a640f63aad8be943eb1fe59779dcfa65e40
parentb6058ca1f3c4be32a4e2643081330c7b37e47b1a
rfkill: 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/1617711116-49370-1-git-send-email-huangguobin4@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/input.c