aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/bluecard_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth/bluecard_cs.c')
-rw-r--r--drivers/bluetooth/bluecard_cs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c
index 57427de864a6..a9a989e5ee88 100644
--- a/drivers/bluetooth/bluecard_cs.c
+++ b/drivers/bluetooth/bluecard_cs.c
@@ -257,7 +257,8 @@ static void bluecard_write_wakeup(bluecard_info_t *info)
257 ready_bit = XMIT_BUF_ONE_READY; 257 ready_bit = XMIT_BUF_ONE_READY;
258 } 258 }
259 259
260 if (!(skb = skb_dequeue(&(info->txq)))) 260 skb = skb_dequeue(&(info->txq));
261 if (!skb)
261 break; 262 break;
262 263
263 if (bt_cb(skb)->pkt_type & 0x80) { 264 if (bt_cb(skb)->pkt_type & 0x80) {
@@ -391,7 +392,8 @@ static void bluecard_receive(bluecard_info_t *info, unsigned int offset)
391 if (info->rx_skb == NULL) { 392 if (info->rx_skb == NULL) {
392 info->rx_state = RECV_WAIT_PACKET_TYPE; 393 info->rx_state = RECV_WAIT_PACKET_TYPE;
393 info->rx_count = 0; 394 info->rx_count = 0;
394 if (!(info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC))) { 395 info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC);
396 if (!info->rx_skb) {
395 BT_ERR("Can't allocate mem for new packet"); 397 BT_ERR("Can't allocate mem for new packet");
396 return; 398 return;
397 } 399 }
@@ -566,7 +568,8 @@ static int bluecard_hci_set_baud_rate(struct hci_dev *hdev, int baud)
566 /* Ericsson baud rate command */ 568 /* Ericsson baud rate command */
567 unsigned char cmd[] = { HCI_COMMAND_PKT, 0x09, 0xfc, 0x01, 0x03 }; 569 unsigned char cmd[] = { HCI_COMMAND_PKT, 0x09, 0xfc, 0x01, 0x03 };
568 570
569 if (!(skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC))) { 571 skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC);
572 if (!skb) {
570 BT_ERR("Can't allocate mem for new packet"); 573 BT_ERR("Can't allocate mem for new packet");
571 return -1; 574 return -1;
572 } 575 }