]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: rtl8192e: make const array broadcast_addr static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Fri, 22 Sep 2017 15:20:18 +0000 (16:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Oct 2017 16:34:57 +0000 (18:34 +0200)
commit1ce72e8ac57a999c2864249567fc313a0def60c9
treeb1893533ef6ee30ff9df6febf410c3bdd09c422f
parent4af8dd1e31ec4df5d738d2a51c9df338f1a64bda
staging: rtl8192e: make const array broadcast_addr static, reduces object code size

Don't populate const array broadcast_addr on the stack, instead make it
static. Makes the object code smaller by over 40 bytes:

Before:
   text    data     bss     dec     hex filename
  63906    8248    1216   73370   11e9a rtllib_softmac.o

After:
   text    data     bss     dec     hex filename
  63806    8304    1216   73326   11e6e rtllib_softmac.o

(gcc 6.3.0, x86-64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c