Bluetooth: btrtl: Make array extension_sig static, shrinks object size
authorColin Ian King <colin.king@canonical.com>
Wed, 26 Sep 2018 08:32:08 +0000 (09:32 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 27 Sep 2018 10:26:21 +0000 (12:26 +0200)
commite5070e0719c7e7303b1441e98a385709e19dadd6
tree98e2e596dd21df8a794d0e447685a4a1e4631a42
parent5a637751e216de2cad77f24f92b9e97e61e459d9
Bluetooth: btrtl: Make array extension_sig static, shrinks object size

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

Before:
   text    data     bss     dec     hex filename
  14325    4920       0   19245    4b2d drivers/bluetooth/btrtl.o

After:
   text    data     bss     dec     hex filename
  14186    4984       0   19170    4ae2 drivers/bluetooth/btrtl.o

(gcc version 8.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btrtl.c