projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ad254f
)
Bluetooth: Delcare the hci_sec_filter as const
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 11 Jul 2014 03:36:40 +0000
(
05:36
+0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 11 Jul 2014 10:54:24 +0000
(13:54 +0300)
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>
net/bluetooth/hci_sock.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_sock.c
b/net/bluetooth/hci_sock.c
index 7805fd1b4a789e5c9274d2986932ac95d4480d56..0753fa4970c098fe0e3614d24bb2e9486736e7ed 100644
(file)
--- 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 */