|
@@ -129,8 +129,7 @@ static void hci_cc_write_link_policy(struct hci_dev *hdev, struct sk_buff *skb)
|
|
|
|
|
|
conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
|
|
conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
|
|
if (conn) {
|
|
if (conn) {
|
|
- __le16 policy = get_unaligned((__le16 *) (sent + 2));
|
|
|
|
- conn->link_policy = __le16_to_cpu(policy);
|
|
|
|
|
|
+ conn->link_policy = get_unaligned_le16(sent + 2);
|
|
}
|
|
}
|
|
|
|
|
|
hci_dev_unlock(hdev);
|
|
hci_dev_unlock(hdev);
|
|
@@ -313,7 +312,7 @@ static void hci_cc_write_voice_setting(struct hci_dev *hdev, struct sk_buff *skb
|
|
return;
|
|
return;
|
|
|
|
|
|
if (!status) {
|
|
if (!status) {
|
|
- __u16 setting = __le16_to_cpu(get_unaligned((__le16 *) sent));
|
|
|
|
|
|
+ __u16 setting = get_unaligned_le16(sent);
|
|
|
|
|
|
if (hdev->voice_setting != setting) {
|
|
if (hdev->voice_setting != setting) {
|
|
hdev->voice_setting = setting;
|
|
hdev->voice_setting = setting;
|
|
@@ -1152,8 +1151,8 @@ static inline void hci_num_comp_pkts_evt(struct hci_dev *hdev, struct sk_buff *s
|
|
struct hci_conn *conn;
|
|
struct hci_conn *conn;
|
|
__u16 handle, count;
|
|
__u16 handle, count;
|
|
|
|
|
|
- handle = __le16_to_cpu(get_unaligned(ptr++));
|
|
|
|
- count = __le16_to_cpu(get_unaligned(ptr++));
|
|
|
|
|
|
+ handle = get_unaligned_le16(ptr++);
|
|
|
|
+ count = get_unaligned_le16(ptr++);
|
|
|
|
|
|
conn = hci_conn_hash_lookup_handle(hdev, handle);
|
|
conn = hci_conn_hash_lookup_handle(hdev, handle);
|
|
if (conn) {
|
|
if (conn) {
|