Commit 2fe5efb8 authored by Jules Irenge's avatar Jules Irenge Committed by Kalle Valo

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: default avatarJules Irenge <jbi.octave@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200411001933.10072-5-jbi.octave@gmail.com
parent 1c0e3c73
...@@ -1717,6 +1717,7 @@ int brcms_check_firmwares(struct brcms_info *wl) ...@@ -1717,6 +1717,7 @@ int brcms_check_firmwares(struct brcms_info *wl)
* precondition: perimeter lock has been acquired * precondition: perimeter lock has been acquired
*/ */
bool brcms_rfkill_set_hw_state(struct brcms_info *wl) bool brcms_rfkill_set_hw_state(struct brcms_info *wl)
__must_hold(&wl->lock)
{ {
bool blocked = brcms_c_check_radio_disabled(wl->wlc); bool blocked = brcms_c_check_radio_disabled(wl->wlc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment