aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.c
diff options
context:
space:
mode:
authorSyam Sidhardhan <s.syam@samsung.com>2012-10-10 12:39:28 -0400
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-10-11 02:25:58 -0400
commitd8aece2af380a251daf2351d92dd38b9edf10b84 (patch)
tree3664c3d8179e188290b0e39045698af2fb1b3c8f /net/bluetooth/smp.c
parent78c1b8e822a0bcf9655a0da3633137b51e17f068 (diff)
Bluetooth: Use __constant modifier for L2CAP SMP CID
Since the L2CAP_CID_SMP is constant, __constant_cpu_to_le16() is the right go here. Signed-off-by: Syam Sidhardhan <s.syam@samsung.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r--net/bluetooth/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index 8c225ef349cd..9b54fea080c9 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -165,7 +165,7 @@ static struct sk_buff *smp_build_cmd(struct l2cap_conn *conn, u8 code,
165 165
166 lh = (struct l2cap_hdr *) skb_put(skb, L2CAP_HDR_SIZE); 166 lh = (struct l2cap_hdr *) skb_put(skb, L2CAP_HDR_SIZE);
167 lh->len = cpu_to_le16(sizeof(code) + dlen); 167 lh->len = cpu_to_le16(sizeof(code) + dlen);
168 lh->cid = cpu_to_le16(L2CAP_CID_SMP); 168 lh->cid = __constant_cpu_to_le16(L2CAP_CID_SMP);
169 169
170 memcpy(skb_put(skb, sizeof(code)), &code, sizeof(code)); 170 memcpy(skb_put(skb, sizeof(code)), &code, sizeof(code));
171 171