Skip to content

Commit e5070e0

Browse files
Colin Ian Kingholtmann
authored andcommitted
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 5a63775 commit e5070e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bluetooth/btrtl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static int rtlbt_parse_firmware(struct hci_dev *hdev,
206206
struct btrtl_device_info *btrtl_dev,
207207
unsigned char **_buf)
208208
{
209-
const u8 extension_sig[] = { 0x51, 0x04, 0xfd, 0x77 };
209+
static const u8 extension_sig[] = { 0x51, 0x04, 0xfd, 0x77 };
210210
struct rtl_epatch_header *epatch_info;
211211
unsigned char *buf;
212212
int i, len;

0 commit comments

Comments
 (0)