Gustavo A. R. Silva
1d609dd32c
Bluetooth: btwilink: remove unnecessary static in bt_ti_probe()
...
Remove unnecessary static on local variable hst.
Such variable is initialized before being used,
on every execution path throughout the function.
The static has no benefit and, removing it reduces
the object file size.
This issue was detected using Coccinelle and the
following semantic patch:
@bad exists@
position p;
identifier x;
type T;
@@
static T x@p;
...
x = <+...x...+>
@@
identifier x;
expression e;
type T;
position p != bad.p;
@@
-static
T x@p;
... when != x
when strict
?x = e;
In the following log you can see the difference in the object file size.
This log is the output of the size command, before and after the code
change:
before:
text data bss dec hex filename
4029 2528 128 6685 1a1d drivers/bluetooth/btwilink.o
after:
text data bss dec hex filename
4007 2472 64 6543 198f drivers/bluetooth/btwilink.o
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2017-07-20 11:18:45 +02:00
..
ath3k.c
Bluetooth: Add another AR3012 04ca:3018 device
2017-02-16 17:35:23 +01:00
bcm203x.c
bfusb.c
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
bluecard_cs.c
networking: add and use skb_put_u8()
2017-06-16 11:48:40 -04:00
bpa10x.c
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
bt3c_cs.c
networking: add and use skb_put_u8()
2017-06-16 11:48:40 -04:00
btbcm.c
Bluetooth: btbcm: Add entry for BCM43430 UART bluetooth
2017-06-29 14:39:42 +02:00
btbcm.h
btintel.c
Bluetooth: btintel: Add MODULE_FIRMWARE entries for iBT 3.5 controllers
2017-05-23 19:54:55 +02:00
btintel.h
btmrvl_debugfs.c
btmrvl_drv.h
Bluetooth: btmrvl: drop duplicate header slab.h
2016-12-08 07:44:56 +01:00
btmrvl_main.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-07-05 12:31:59 -07:00
btmrvl_sdio.c
Bluetooth: btmrvl: remove unnecessary wakeup interrupt number sanity check
2017-04-12 22:02:40 +02:00
btmrvl_sdio.h
btqca.c
Bluetooth: btqca: Fixed a coding style error
2017-07-20 11:18:35 +02:00
btqca.h
btqcomsmd.c
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
btrtl.c
Bluetooth: btrtl: Change message for missing config file
2017-04-12 22:02:38 +02:00
btrtl.h
btsdio.c
btuart_cs.c
networking: add and use skb_put_u8()
2017-06-16 11:48:40 -04:00
btusb.c
Bluetooth: btusb: fix QCA Rome suspend/resume
2017-07-20 11:18:36 +02:00
btwilink.c
Bluetooth: btwilink: remove unnecessary static in bt_ti_probe()
2017-07-20 11:18:45 +02:00
dtl1_cs.c
networking: add and use skb_put_u8()
2017-06-16 11:48:40 -04:00
hci_ag6xx.c
hci_ath.c
hci_bcm.c
Bluetooth: hci_bcm: Make bcm_request_irq fail if no IRQ resource
2017-07-20 11:18:35 +02:00
hci_bcsp.c
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
hci_h4.c
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
hci_h5.c
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
hci_intel.c
networking: add and use skb_put_u8()
2017-06-16 11:48:40 -04:00
hci_ldisc.c
Bluetooth: hci_ldisc: Use rwlocking to avoid closing proto races
2017-05-18 13:52:50 +02:00
hci_ll.c
Bluetooth: hci_ll: Use new hci_uart_unregister_device() function
2017-07-20 11:18:36 +02:00
hci_mrvl.c
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
hci_nokia.c
Bluetooth: hci_nokia: Use new hci_uart_unregister_device() function
2017-07-20 11:18:36 +02:00
hci_qca.c
networking: add and use skb_put_u8()
2017-06-16 11:48:40 -04:00
hci_serdev.c
Bluetooth: hci_serdev: Introduce hci_uart_unregister_device()
2017-07-20 11:18:36 +02:00
hci_uart.h
Bluetooth: hci_serdev: Introduce hci_uart_unregister_device()
2017-07-20 11:18:36 +02:00
hci_vhci.c
networking: add and use skb_put_u8()
2017-06-16 11:48:40 -04:00
Kconfig
Bluetooth: hci_nokia: select BT_HCIUART_H4
2017-05-18 13:59:05 +02:00
Makefile
Bluetooth: try to improve CONFIG_SERIAL_DEV_BUS dependency
2017-04-22 10:28:40 +02:00