summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-10-20 21:36:04 +0200
committerJohannes Berg <johannes.berg@intel.com>2014-10-20 21:36:55 +0200
commitb08cc24e0a24f8d67ba7d66dab43c40ed25a3f5c (patch)
treef318860d83a2fdafd626c0d78428154fab3ff015 /net
parent988568669d171774b96e59fe35ef575df7f8cffd (diff)
downloadlinux-stable-b08cc24e0a24f8d67ba7d66dab43c40ed25a3f5c.tar.gz
linux-stable-b08cc24e0a24f8d67ba7d66dab43c40ed25a3f5c.tar.bz2
linux-stable-b08cc24e0a24f8d67ba7d66dab43c40ed25a3f5c.zip
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')
-rw-r--r--net/mac80211/cfg.c3
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);