iwlegacy: make array interval static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Mon, 7 Oct 2019 13:41:13 +0000 (14:41 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 9 Oct 2019 08:27:22 +0000 (11:27 +0300)
commit55047fb783e0f5b13fc79653f09a06782c3ffe18
treed83d00fc23b98f5a8affd3b8fcf5a866a9f84f8d
parentbe10b09b278fcd64e79e232c88d9152c6f5c2923
iwlegacy: make array interval static, makes object smaller

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

Before:
   text    data     bss     dec     hex filename
 167797   29676     448  197921   30521 wireless/intel/iwlegacy/common.o

After:
   text    data     bss     dec     hex filename
 167580   29772     448  197800   304a8 wireless/intel/iwlegacy/common.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlegacy/common.c