brcmsmac: Add missing annotation for brcms_rfkill_set_hw_state()
authorJules Irenge <jbi.octave@gmail.com>
Sat, 11 Apr 2020 00:19:28 +0000 (01:19 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Apr 2020 08:43:40 +0000 (11:43 +0300)
commit2fe5efb8a475c856cd72a37fd73d82f5b5b563e0
treeff378c1ba16f3c1a0aff16a2cd48206f71a5e3a8
parent1c0e3c73e98dd55bc9551279fed6233997425c23
brcmsmac: Add missing annotation for brcms_rfkill_set_hw_state()

Sparse reports a warning at brcms_rfkill_set_hw_state()

warning: context imbalance in brcms_rfkill_set_hw_state()
- unexpected unlock
The root cause is the missing annotation at brcms_rfkill_set_hw_state()
Add the missing __must_hold(&wl->lock) annotation

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200411001933.10072-5-jbi.octave@gmail.com
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c