diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2012-10-10 22:09:28 +0530 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-10-11 14:25:58 +0800 |
commit | d8aece2af380a251daf2351d92dd38b9edf10b84 (patch) | |
tree | 3664c3d8179e188290b0e39045698af2fb1b3c8f /net/bluetooth/smp.c | |
parent | 78c1b8e822a0bcf9655a0da3633137b51e17f068 (diff) | |
download | blackbird-op-linux-d8aece2af380a251daf2351d92dd38b9edf10b84.tar.gz blackbird-op-linux-d8aece2af380a251daf2351d92dd38b9edf10b84.zip |
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.c | 2 |
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, lh = (struct l2cap_hdr *) skb_put(skb, L2CAP_HDR_SIZE); lh->len = cpu_to_le16(sizeof(code) + dlen); - lh->cid = cpu_to_le16(L2CAP_CID_SMP); + lh->cid = __constant_cpu_to_le16(L2CAP_CID_SMP); memcpy(skb_put(skb, sizeof(code)), &code, sizeof(code)); |