diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-05-02 16:25:46 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-02 16:25:46 -0700 |
commit | 83985319393973f280ca2a797047780a7955cf19 (patch) | |
tree | 438e92affd9c605188404e920b8605670d0d6ab0 /net/bluetooth/hci_sock.c | |
parent | 260ffeed3fd185d29f08e98fb47c09e71bb59cd8 (diff) | |
download | linux-83985319393973f280ca2a797047780a7955cf19.tar.bz2 |
bluetooth: use get/put_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r-- | net/bluetooth/hci_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index 1d36c093523b..747fabd735d2 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c @@ -440,7 +440,7 @@ static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock, skb->dev = (void *) hdev; if (bt_cb(skb)->pkt_type == HCI_COMMAND_PKT) { - u16 opcode = __le16_to_cpu(get_unaligned((__le16 *) skb->data)); + u16 opcode = get_unaligned_le16(skb->data); u16 ogf = hci_opcode_ogf(opcode); u16 ocf = hci_opcode_ocf(opcode); |