]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mac80211: fix change flags variable signedness
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Oct 2014 19:36:04 +0000 (21:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Oct 2014 19:36:55 +0000 (21:36 +0200)
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>
net/mac80211/cfg.c

index a1498416ad557d006d94c1fa96f7092d0b8212c9..acebf2c5bb0cb294ec8a53e14884a332d2f3d6ae 100644 (file)
@@ -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);