cfg80211: mark ieee80211_hdrlen const
authorJohannes Berg <johannes.berg@intel.com>
Thu, 12 Aug 2010 12:49:58 +0000 (14:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Aug 2010 20:27:54 +0000 (16:27 -0400)
commit633adf1ad1c92c02bd3f10bbd73737a969179378
tree3f23d54719a1742d9326d61b6820147185cdb60c
parentb68b3c4d92ff2440414137763477648e6db6c96f
cfg80211: mark ieee80211_hdrlen const

This function analyses only its single, value-passed
argument, and has no side effects. Thus it can be
const, which makes mac80211 smaller, for example:

   text    data     bss     dec     hex filename
 362518   16720     884  380122   5ccda mac80211.ko (before)
 362358   16720     884  379962   5cc3a mac80211.ko (after)

a 160 byte saving in text size, and an optimisation
because the function won't be called as often.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/cfg80211.h
net/wireless/util.c
This page took 0.02712 seconds and 5 git commands to generate.