Skip to content
Commit e843bb19 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by John W. Linville
Browse files

net/wireless/brcm80211/brcmfmac: Make return type and name reflect actual semantics



Applying ++ to a bool is equivalent to setting it true, regardless of
its initial value (bools are not uint1_t). Hence the function
wl_get_vif_state_all can only ever return true/false. The only in-tree
caller uses its return value as a boolean. So update its return type,
and since the list traversal and bit testing have no side effects,
just return true immediately. Its return value tells if any vif is in
the specified state, so also rename it to brcmf_get_vif_state_any.

Reviewed-by: default avatarArend van <Spriel&lt;arend@broadcom.com>
Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 363c1b4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment