wifi: mac80211: use full 'unsigned int' type
authorXin Gao <gaoxin@cdjrlc.com>
Tue, 16 Aug 2022 18:10:40 +0000 (02:10 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Aug 2022 07:58:54 +0000 (09:58 +0200)
The full 'unsigned int' is better than 'unsigned'.

Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
Link: https://lore.kernel.org/r/20220816181040.9044-1-gaoxin@cdjrlc.com
[fix indentation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c

index d56890e..c14d740 100644 (file)
@@ -1346,10 +1346,10 @@ static void ieee80211_sta_create_ibss(struct ieee80211_sub_if_data *sdata)
                                  capability, 0, true);
 }
 
-static unsigned ibss_setup_channels(struct wiphy *wiphy,
-                                   struct ieee80211_channel **channels,
-                                   unsigned int channels_max,
-                                   u32 center_freq, u32 width)
+static unsigned int ibss_setup_channels(struct wiphy *wiphy,
+                                       struct ieee80211_channel **channels,
+                                       unsigned int channels_max,
+                                       u32 center_freq, u32 width)
 {
        struct ieee80211_channel *chan = NULL;
        unsigned int n_chan = 0;