Bluetooth: btmrvl: Comparison to NULL re-written
authorPrasanna Karthik <mkarthi3@visteon.com>
Fri, 25 Sep 2015 09:03:14 +0000 (09:03 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 25 Sep 2015 19:39:04 +0000 (21:39 +0200)
NOT NULL comparison modified to be readable, reported
by checkpatch.

Signed-off-by: Prasanna Karthik <mkarthi3@visteon.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmrvl_main.c
drivers/bluetooth/btmrvl_sdio.c

index bc110f61c8b18c661f58a83882df6c3ddb039221..050ad6ba1981317929fcf287dd5bb7c098b982d6 100644 (file)
@@ -184,7 +184,7 @@ static int btmrvl_send_sync_cmd(struct btmrvl_private *priv, u16 opcode,
        }
 
        skb = bt_skb_alloc(HCI_COMMAND_HDR_SIZE + len, GFP_ATOMIC);
-       if (skb == NULL) {
+       if (!skb) {
                BT_ERR("No free skb");
                return -ENOMEM;
        }
index 7f6fb1730fd1ccd41bb181996f904127fdbd8b24..71ea2a3af29340b09ed1a44ccd3f22f840b8e25f 100644 (file)
@@ -654,7 +654,7 @@ static int btmrvl_sdio_card_to_host(struct btmrvl_private *priv)
 
        /* Allocate buffer */
        skb = bt_skb_alloc(num_blocks * blksz + BTSDIO_DMA_ALIGN, GFP_ATOMIC);
-       if (skb == NULL) {
+       if (!skb) {
                BT_ERR("No free skb");
                ret = -ENOMEM;
                goto exit;