]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Correct CID endian notation
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 12 Mar 2012 10:13:08 +0000 (12:13 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 14:39:08 +0000 (11:39 -0300)
L2CAP channel id is used in host format in internal L2CAP code.
Fix sparse warnings about wrong endian conversion.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c

index 85c3404fcedd2565ef5699a68656a2025b40bbe3..c778585dd7b7d0e1313e0335d668020171705c48 100644 (file)
@@ -834,7 +834,7 @@ static void l2cap_conn_start(struct l2cap_conn *conn)
 /* Find socket with cid and source bdaddr.
  * Returns closest match, locked.
  */
-static struct l2cap_chan *l2cap_global_chan_by_scid(int state, __le16 cid, bdaddr_t *src)
+static struct l2cap_chan *l2cap_global_chan_by_scid(int state, u16 cid, bdaddr_t *src)
 {
        struct l2cap_chan *c, *c1 = NULL;
 
@@ -4394,7 +4394,7 @@ drop:
        return 0;
 }
 
-static inline int l2cap_att_channel(struct l2cap_conn *conn, __le16 cid, struct sk_buff *skb)
+static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid, struct sk_buff *skb)
 {
        struct l2cap_chan *chan;