]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: pcie: make array 'prop' static, shrinks object size
authorColin Ian King <colin.king@canonical.com>
Tue, 21 Aug 2018 10:21:09 +0000 (11:21 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 25 Jan 2019 18:57:18 +0000 (20:57 +0200)
commitaba1e632c2e810bd685a2c954ebc726e5ca30b2b
tree078fe9ff1af4761ebe88838a904831c796e0a47c
parent4ad0be160544ffbdafb7cec39bb8e6dd0a97317a
iwlwifi: pcie: make array 'prop' static, shrinks object size

Don't populate the array prop on the stack but instead make it static.
Makes the object code smaller by 30 bytes:

Before:
   text    data     bss     dec     hex filename
  80138   15382     576   96096   17760 drivers/net/wireless/intel/iwlwifi/pcie/trans.o

After:
   text    data     bss     dec     hex filename
  79948   15542     576   96066   17742 drivers/net/wireless/intel/iwlwifi/pcie/trans.o

(gcc version 8.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c