diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-10-20 21:36:04 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-10-20 21:36:55 +0200 |
commit | b08cc24e0a24f8d67ba7d66dab43c40ed25a3f5c (patch) | |
tree | f318860d83a2fdafd626c0d78428154fab3ff015 /net/mac80211/cfg.c | |
parent | 988568669d171774b96e59fe35ef575df7f8cffd (diff) | |
download | linux-b08cc24e0a24f8d67ba7d66dab43c40ed25a3f5c.tar.bz2 |
mac80211: fix change flags variable signedness
This showed up as a sparse warning (with higher verbosity) and is
certainly correct - the change flags should be unsigned. It's not
that important since high flag numbers aren't used and bitwise
operations would still work.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index a1498416ad55..acebf2c5bb0c 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -3108,7 +3108,8 @@ __ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, struct ieee80211_channel_switch ch_switch; struct ieee80211_chanctx_conf *conf; struct ieee80211_chanctx *chanctx; - int err, changed = 0; + u32 changed = 0; + int err; sdata_assert_lock(sdata); lockdep_assert_held(&local->mtx); |