diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-27 17:38:07 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:28:21 -0400 |
commit | 2a123b86e2b242a4a6db990d2851d45e192f88e5 (patch) | |
tree | afbb29b9cf58cf8ee5c581315d5b423d7775196f /drivers/bluetooth/bluecard_cs.c | |
parent | 03d4f879b9ddf7d5c1f788792247e62450342eed (diff) |
[BLUETOOTH]: Introduce skb->data accessor methods for hci_{acl,event,sco}_hdr
For consistency with other skb data accessors, reducing the number of direct
accesses to skb->data.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'drivers/bluetooth/bluecard_cs.c')
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index acfb6a430dcc..851de4d5b7de 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c | |||
@@ -461,20 +461,20 @@ static void bluecard_receive(bluecard_info_t *info, unsigned int offset) | |||
461 | switch (info->rx_state) { | 461 | switch (info->rx_state) { |
462 | 462 | ||
463 | case RECV_WAIT_EVENT_HEADER: | 463 | case RECV_WAIT_EVENT_HEADER: |
464 | eh = (struct hci_event_hdr *)(info->rx_skb->data); | 464 | eh = hci_event_hdr(info->rx_skb); |
465 | info->rx_state = RECV_WAIT_DATA; | 465 | info->rx_state = RECV_WAIT_DATA; |
466 | info->rx_count = eh->plen; | 466 | info->rx_count = eh->plen; |
467 | break; | 467 | break; |
468 | 468 | ||
469 | case RECV_WAIT_ACL_HEADER: | 469 | case RECV_WAIT_ACL_HEADER: |
470 | ah = (struct hci_acl_hdr *)(info->rx_skb->data); | 470 | ah = hci_acl_hdr(info->rx_skb); |
471 | dlen = __le16_to_cpu(ah->dlen); | 471 | dlen = __le16_to_cpu(ah->dlen); |
472 | info->rx_state = RECV_WAIT_DATA; | 472 | info->rx_state = RECV_WAIT_DATA; |
473 | info->rx_count = dlen; | 473 | info->rx_count = dlen; |
474 | break; | 474 | break; |
475 | 475 | ||
476 | case RECV_WAIT_SCO_HEADER: | 476 | case RECV_WAIT_SCO_HEADER: |
477 | sh = (struct hci_sco_hdr *)(info->rx_skb->data); | 477 | sh = hci_sco_hdr(info->rx_skb); |
478 | info->rx_state = RECV_WAIT_DATA; | 478 | info->rx_state = RECV_WAIT_DATA; |
479 | info->rx_count = sh->dlen; | 479 | info->rx_count = sh->dlen; |
480 | break; | 480 | break; |