aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_ll.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth/hci_ll.c')
-rw-r--r--drivers/bluetooth/hci_ll.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c
index 5c65014635be..fb8445c7365e 100644
--- a/drivers/bluetooth/hci_ll.c
+++ b/drivers/bluetooth/hci_ll.c
@@ -402,7 +402,7 @@ static int ll_recv(struct hci_uart *hu, void *data, int count)
402 continue; 402 continue;
403 403
404 case HCILL_W4_EVENT_HDR: 404 case HCILL_W4_EVENT_HDR:
405 eh = (struct hci_event_hdr *) ll->rx_skb->data; 405 eh = hci_event_hdr(ll->rx_skb);
406 406
407 BT_DBG("Event header: evt 0x%2.2x plen %d", eh->evt, eh->plen); 407 BT_DBG("Event header: evt 0x%2.2x plen %d", eh->evt, eh->plen);
408 408
@@ -410,7 +410,7 @@ static int ll_recv(struct hci_uart *hu, void *data, int count)
410 continue; 410 continue;
411 411
412 case HCILL_W4_ACL_HDR: 412 case HCILL_W4_ACL_HDR:
413 ah = (struct hci_acl_hdr *) ll->rx_skb->data; 413 ah = hci_acl_hdr(ll->rx_skb);
414 dlen = __le16_to_cpu(ah->dlen); 414 dlen = __le16_to_cpu(ah->dlen);
415 415
416 BT_DBG("ACL header: dlen %d", dlen); 416 BT_DBG("ACL header: dlen %d", dlen);
@@ -419,7 +419,7 @@ static int ll_recv(struct hci_uart *hu, void *data, int count)
419 continue; 419 continue;
420 420
421 case HCILL_W4_SCO_HDR: 421 case HCILL_W4_SCO_HDR:
422 sh = (struct hci_sco_hdr *) ll->rx_skb->data; 422 sh = hci_sco_hdr(ll->rx_skb);
423 423
424 BT_DBG("SCO header: dlen %d", sh->dlen); 424 BT_DBG("SCO header: dlen %d", sh->dlen);
425 425
@@ -491,7 +491,7 @@ static int ll_recv(struct hci_uart *hu, void *data, int count)
491 BT_ERR("Can't allocate mem for new packet"); 491 BT_ERR("Can't allocate mem for new packet");
492 ll->rx_state = HCILL_W4_PACKET_TYPE; 492 ll->rx_state = HCILL_W4_PACKET_TYPE;
493 ll->rx_count = 0; 493 ll->rx_count = 0;
494 return 0; 494 return -ENOMEM;
495 } 495 }
496 496
497 ll->rx_skb->dev = (void *) hu->hdev; 497 ll->rx_skb->dev = (void *) hu->hdev;