staging: wilc1000: linux_wlan_spi.c: fix NULL comparison style
authorGlen Lee <glen.lee@atmel.com>
Mon, 21 Dec 2015 05:18:22 +0000 (14:18 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:20:04 +0000 (13:20 -0800)
This patch fixes checkpatch CHECK:comparison to NULL could be written "b".

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan_spi.c

index 190243afb8ce2953191542d46b23abc44b1987d1..61114057b8f7f5abdfe478ac3a1479241a3abfec 100644 (file)
@@ -72,7 +72,7 @@ int wilc_spi_write(struct wilc *wilc, u8 *b, u32 len)
        int ret;
        struct spi_message msg;
 
-       if (len > 0 && b != NULL) {
+       if (len > 0 && b) {
                struct spi_transfer tr = {
                        .tx_buf = b,
                        .len = len,