Bluetooth: Use sizeof(*pointer) instead of sizeof(type)
authorErick Archer <erick.archer@outlook.com>
Fri, 24 May 2024 17:11:51 +0000 (19:11 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Jul 2024 01:34:28 +0000 (21:34 -0400)
commit973dd9c4db4746200f88fe46e30eada7054fdbea
tree9bd4b9d177781b1437ac88bb315426795ec35bc3
parent183469bccf68cb05dfb56cc47e73520217854bab
Bluetooth: Use sizeof(*pointer) instead of sizeof(type)

It is preferred to use sizeof(*pointer) instead of sizeof(type)
due to the type of the variable can change and one needs not
change the former (unlike the latter). This patch has no effect
on runtime behavior.

Signed-off-by: Erick Archer <erick.archer@outlook.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btrtl.c
drivers/bluetooth/hci_ldisc.c
drivers/bluetooth/hci_qca.c
drivers/bluetooth/hci_vhci.c