Bluetooth: bluecard: Comparison to NULL could be re-written
authorPrasanna Karthik <mkarthi3@visteon.com>
Fri, 25 Sep 2015 07:59:18 +0000 (07:59 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 25 Sep 2015 08:19:03 +0000 (10:19 +0200)
replaced 'not null' comparison that is readable, reported by checkpatch.

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

index 35e63aaa6f803e423a39e532adeff717b7279cb3..25b71664cdc3dace8aabe98d4e561c69a66f9c40 100644 (file)
@@ -390,7 +390,7 @@ static void bluecard_receive(struct bluecard_info *info,
        for (i = 0; i < len; i++) {
 
                /* Allocate packet */
-               if (info->rx_skb == NULL) {
+               if (!info->rx_skb) {
                        info->rx_state = RECV_WAIT_PACKET_TYPE;
                        info->rx_count = 0;
                        info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC);