diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-10-23 09:50:03 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-12-04 14:43:32 +0100 |
commit | 0483eeac59876ac37d4edbabd48727a468416d5b (patch) | |
tree | 53529fe082caeb04e5170ce2227c71393710da01 /include/net | |
parent | 6e045905d1786f62cb3f7ddc6c987f7dc3ad8ed6 (diff) | |
download | linux-0483eeac59876ac37d4edbabd48727a468416d5b.tar.gz linux-0483eeac59876ac37d4edbabd48727a468416d5b.tar.bz2 linux-0483eeac59876ac37d4edbabd48727a468416d5b.zip |
cfg80211: replace ieee80211_ie_split() with an inline
The function is a very simple wrapper around another one,
just adds a few default parameters, so replace it with a
static inline instead of using EXPORT_SYMBOL, reducing
the module size slightly.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/cfg80211.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 2c7bdb81d30c..e568872203a5 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -5173,8 +5173,11 @@ size_t ieee80211_ie_split_ric(const u8 *ies, size_t ielen, * buffer starts, which may be @ielen if the entire (remainder) * of the buffer should be used. */ -size_t ieee80211_ie_split(const u8 *ies, size_t ielen, - const u8 *ids, int n_ids, size_t offset); +static inline size_t ieee80211_ie_split(const u8 *ies, size_t ielen, + const u8 *ids, int n_ids, size_t offset) +{ + return ieee80211_ie_split_ric(ies, ielen, ids, n_ids, NULL, 0, offset); +} /** * cfg80211_report_wowlan_wakeup - report wakeup from WoWLAN |