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)
commit292a753d4b184ba6303d026edfe4e34145ce6905
tree4164db83336dfd7cbf4471b678d72e97ab7fb4a0
parenta52c0282721e8e2a39679f865dc5ec72005a948f
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