summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_sock.c
diff options
context:
space:
mode:
authorMarcel Holtmann2014-07-11 05:36:40 +0200
committerJohan Hedberg2014-07-11 12:54:24 +0200
commit7e67c112a007fafef6dd36c33d1029a65250ca9b (patch)
tree881a9ff1a6a52854582a3879c8a21dd4ae75e432 /net/bluetooth/hci_sock.c
parentBluetooth: Move struct hci_sec_filter next to its user (diff)
downloadkernel-qcow2-linux-7e67c112a007fafef6dd36c33d1029a65250ca9b.tar.gz
kernel-qcow2-linux-7e67c112a007fafef6dd36c33d1029a65250ca9b.tar.xz
kernel-qcow2-linux-7e67c112a007fafef6dd36c33d1029a65250ca9b.zip
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 <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r--net/bluetooth/hci_sock.c2
1 files changed, 1 insertions, 1 deletions
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 */