carl9170: Use static const
authorJoe Perches <joe@perches.com>
Sun, 21 Nov 2010 02:38:54 +0000 (18:38 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Nov 2010 20:58:45 +0000 (15:58 -0500)
Using static const generally increases object text and decreases data size.
It also generally decreases overall object size.

   text    data     bss     dec     hex filename
   1897      56     672    2625     a41 drivers/net/wireless/ath/carl9170/cmd.o.new
   1897      56     672    2625     a41 drivers/net/wireless/ath/carl9170/cmd.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/cmd.c

index c21f3364bfecbfc0ea860fb8b9e05d952895e4be..cdfc94c371b41930e0fd50aca0119e877a6d0f10 100644 (file)
@@ -41,7 +41,7 @@
 
 int carl9170_write_reg(struct ar9170 *ar, const u32 reg, const u32 val)
 {
-       __le32 buf[2] = {
+       const __le32 buf[2] = {
                cpu_to_le32(reg),
                cpu_to_le32(val),
        };