diff options
-rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 772a2770710c..b8f4b63175e7 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
@@ -233,7 +233,7 @@ static void bt3c_receive(struct bt3c_info *info) | |||
233 | info->hdev->stat.byte_rx++; | 233 | info->hdev->stat.byte_rx++; |
234 | 234 | ||
235 | /* Allocate packet */ | 235 | /* Allocate packet */ |
236 | if (info->rx_skb == NULL) { | 236 | if (!info->rx_skb) { |
237 | info->rx_state = RECV_WAIT_PACKET_TYPE; | 237 | info->rx_state = RECV_WAIT_PACKET_TYPE; |
238 | info->rx_count = 0; | 238 | info->rx_count = 0; |
239 | info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC); | 239 | info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC); |