mac80211: make ieee802_11_parse_elems an inline
authorJohannes Berg <johannes.berg@intel.com>
Wed, 27 Mar 2013 13:55:31 +0000 (14:55 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 8 Apr 2013 09:08:32 +0000 (11:08 +0200)
This (slightly) reduces the code size.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/util.c

index 55fb382a81998efb36e6a4e5703955b412a193cd..8d5dcbf17bbcd528cdd6a7802b7f7ffd822f77d2 100644 (file)
@@ -1492,11 +1492,15 @@ static inline void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata,
        ieee80211_tx_skb_tid(sdata, skb, 7);
 }
 
-void ieee802_11_parse_elems(u8 *start, size_t len,
-                           struct ieee802_11_elems *elems);
 u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
                               struct ieee802_11_elems *elems,
                               u64 filter, u32 crc);
+static inline void ieee802_11_parse_elems(u8 *start, size_t len,
+                                         struct ieee802_11_elems *elems)
+{
+       ieee802_11_parse_elems_crc(start, len, elems, 0, 0);
+}
+
 u32 ieee80211_mandatory_rates(struct ieee80211_local *local,
                              enum ieee80211_band band);
 
index 43465b6e477805d8760ca9a27daeec056ffc6f69..447e6651e7fa7d0faa293b1ac1b431b6d14005eb 100644 (file)
@@ -898,12 +898,6 @@ u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
        return crc;
 }
 
-void ieee802_11_parse_elems(u8 *start, size_t len,
-                           struct ieee802_11_elems *elems)
-{
-       ieee802_11_parse_elems_crc(start, len, elems, 0, 0);
-}
-
 void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata,
                               bool bss_notify)
 {