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/bt3c_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/bt3c_cs.c')
-rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 18b0f3992c5b..39516074636b 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
@@ -303,20 +303,20 @@ static void bt3c_receive(bt3c_info_t *info) | |||
303 | switch (info->rx_state) { | 303 | switch (info->rx_state) { |
304 | 304 | ||
305 | case RECV_WAIT_EVENT_HEADER: | 305 | case RECV_WAIT_EVENT_HEADER: |
306 | eh = (struct hci_event_hdr *)(info->rx_skb->data); | 306 | eh = hci_event_hdr(info->rx_skb); |
307 | info->rx_state = RECV_WAIT_DATA; | 307 | info->rx_state = RECV_WAIT_DATA; |
308 | info->rx_count = eh->plen; | 308 | info->rx_count = eh->plen; |
309 | break; | 309 | break; |
310 | 310 | ||
311 | case RECV_WAIT_ACL_HEADER: | 311 | case RECV_WAIT_ACL_HEADER: |
312 | ah = (struct hci_acl_hdr *)(info->rx_skb->data); | 312 | ah = hci_acl_hdr(info->rx_skb); |
313 | dlen = __le16_to_cpu(ah->dlen); | 313 | dlen = __le16_to_cpu(ah->dlen); |
314 | info->rx_state = RECV_WAIT_DATA; | 314 | info->rx_state = RECV_WAIT_DATA; |
315 | info->rx_count = dlen; | 315 | info->rx_count = dlen; |
316 | break; | 316 | break; |
317 | 317 | ||
318 | case RECV_WAIT_SCO_HEADER: | 318 | case RECV_WAIT_SCO_HEADER: |
319 | sh = (struct hci_sco_hdr *)(info->rx_skb->data); | 319 | sh = hci_sco_hdr(info->rx_skb); |
320 | info->rx_state = RECV_WAIT_DATA; | 320 | info->rx_state = RECV_WAIT_DATA; |
321 | info->rx_count = sh->dlen; | 321 | info->rx_count = sh->dlen; |
322 | break; | 322 | break; |