]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: clean up num_peers locking
authorMichal Kazior <michal.kazior@tieto.com>
Tue, 25 Nov 2014 14:16:04 +0000 (15:16 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 26 Nov 2014 06:44:10 +0000 (08:44 +0200)
commit747400acafceb2cd87319313255b1426283757cf
tree4164db83336dfd7cbf4471b678d72e97ab7fb4a0
parent22b22ef3f378652e9210bc84e48a2dea632f470c
ath10k: clean up num_peers locking

The var was supposed to be protected by data_lock
but it wasn't so in all instances. It's actually
not necessary to have a spinlock protected
num_peers so drop it.

All instances of num_peers are already within
conf_mutex sections so use that.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/mac.c