]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: trivial: Correct endian conversion
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 9 Mar 2012 09:59:15 +0000 (11:59 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 14:39:05 +0000 (11:39 -0300)
Correct endian conversion reported by sparse

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_event.c

index badb7851d11669a8da55be315bc77054c5eaf7a3..a0140b95cbeb03c22ada790467199ef7f03741de 100644 (file)
@@ -3334,7 +3334,7 @@ static inline void hci_le_ltk_request_evt(struct hci_dev *hdev,
        struct hci_conn *conn;
        struct smp_ltk *ltk;
 
-       BT_DBG("%s handle %d", hdev->name, cpu_to_le16(ev->handle));
+       BT_DBG("%s handle %d", hdev->name, __le16_to_cpu(ev->handle));
 
        hci_dev_lock(hdev);