diff options
author | Joe Perches <joe@perches.com> | 2010-11-20 18:39:01 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-22 15:58:53 -0500 |
commit | f4e16e41d62ddc75704a0344567a807ebb41a929 (patch) | |
tree | 10e51ae8e04e327dc4cb027e2ecdae9f9f9e97f9 /drivers/net/wireless/rt2x00/rt2800lib.c | |
parent | 22288a5847df30fb8ba298914f144c3b1d6e1fbe (diff) | |
download | kernel_samsung_aries-f4e16e41d62ddc75704a0344567a807ebb41a929.zip kernel_samsung_aries-f4e16e41d62ddc75704a0344567a807ebb41a929.tar.gz kernel_samsung_aries-f4e16e41d62ddc75704a0344567a807ebb41a929.tar.bz2 |
rt2x00: Use static const
Using static const generally increases object text and decreases data size.
It also generally decreases overall object size.
text data bss dec hex filename
40197 56 8336 48589 bdcd drivers/net/wireless/rt2x00/rt2800lib.o.new
40205 56 8336 48597 bdd5 drivers/net/wireless/rt2x00/rt2800lib.o.old
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800lib.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index ce8df66..7563161 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c @@ -2166,7 +2166,7 @@ static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev) SHARED_KEY_MODE_ENTRY(i), 0); for (i = 0; i < 256; i++) { - u32 wcid[2] = { 0xffffffff, 0x00ffffff }; + static const u32 wcid[2] = { 0xffffffff, 0x00ffffff }; rt2800_register_multiwrite(rt2x00dev, MAC_WCID_ENTRY(i), wcid, sizeof(wcid)); |