Skip to contentSkip to conversation

Bluetooth: Delcare the hci_sec_filter as const

PATCH In review Marcel Holtmann 1 participant 1 message Jul 11, 2014

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 2/2 Bluetooth: Delcare the hci_sec_filter as const

The hci_sec_filter socket filter details do not change. They are fixed and with that they can also be delcared as const.

---
 net/bluetooth/hci_sock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/hci_sock.c +1 -1
index 7805fd1b4a78..0753fa4970c0 100644
@@ -49,7 +49,7 @@ struct hci_sec_filter {
 	__u32 ocf_mask[HCI_SFLT_MAX_OGF + 1][4];
 };
 
-static struct hci_sec_filter hci_sec_filter = {
+static const struct hci_sec_filter hci_sec_filter = {
 	/* Packet types */
 	0x10,
 	/* Events */
Signature · 1 line
1.9.3