From: Glen Lee Date: Mon, 21 Dec 2015 05:18:22 +0000 (+0900) Subject: staging: wilc1000: linux_wlan_spi.c: fix NULL comparison style X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3bac1c51dc2d61038155b298792e3663b356c0c4;p=linux-beck.git staging: wilc1000: linux_wlan_spi.c: fix NULL comparison style This patch fixes checkpatch CHECK:comparison to NULL could be written "b". Signed-off-by: Glen Lee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/linux_wlan_spi.c b/drivers/staging/wilc1000/linux_wlan_spi.c index 190243afb8ce..61114057b8f7 100644 --- a/drivers/staging/wilc1000/linux_wlan_spi.c +++ b/drivers/staging/wilc1000/linux_wlan_spi.c @@ -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,