From: Marcel Holtmann Date: Fri, 11 Jul 2014 03:36:40 +0000 (+0200) Subject: Bluetooth: Delcare the hci_sec_filter as const X-Git-Tag: v3.17-rc1~106^2~73^2~42^2~23 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7e67c112a007fafef6dd36c33d1029a65250ca9b;p=karo-tx-linux.git 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. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index 7805fd1b4a78..0753fa4970c0 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c @@ -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 */