diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-06 16:23:28 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2018-01-08 21:44:22 +0100 |
commit | 948c7ca03c14d9dd5ece5866dc1ab49f95613ad6 (patch) | |
tree | 102098e156b72ae352c9a30abc970d2a3034cb24 /drivers/bluetooth | |
parent | cca32837f0f5fb794d0d486bc76ed0bfb703de7b (diff) | |
download | linux-948c7ca03c14d9dd5ece5866dc1ab49f95613ad6.tar.gz linux-948c7ca03c14d9dd5ece5866dc1ab49f95613ad6.tar.bz2 linux-948c7ca03c14d9dd5ece5866dc1ab49f95613ad6.zip |
Bluetooth: btintel: make array 'param' static, shrinks object size
Don't populate the const read-only array 'param' on the stack but instead
make it static. Makes the object code smaller by nearly 20 bytes:
Before:
text data bss dec hex filename
11605 2629 64 14298 37da linux/drivers/bluetooth/btintel.o
After:
text data bss dec hex filename
11531 2685 64 14280 37c8 linux/drivers/bluetooth/btintel.o
(gcc version 7.2.0 x86_64)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btintel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c index 4459555c9d88..07f00e422e85 100644 --- a/drivers/bluetooth/btintel.c +++ b/drivers/bluetooth/btintel.c @@ -75,7 +75,7 @@ EXPORT_SYMBOL_GPL(btintel_check_bdaddr); int btintel_enter_mfg(struct hci_dev *hdev) { - const u8 param[] = { 0x01, 0x00 }; + static const u8 param[] = { 0x01, 0x00 }; struct sk_buff *skb; skb = __hci_cmd_sync(hdev, 0xfc11, 2, param, HCI_CMD_TIMEOUT); |