summaryrefslogtreecommitdiff
path: root/drivers/staging/wilc1000
diff options
context:
space:
mode:
authorGlen Lee <glen.lee@atmel.com>2015-12-21 05:18:22 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-21 21:20:04 (GMT)
commit3bac1c51dc2d61038155b298792e3663b356c0c4 (patch)
treed17c02acc14df937a7ec2b70610eb5f7bde30ecd /drivers/staging/wilc1000
parentd8506598003ba874317e7dc632339fc9052043a8 (diff)
downloadlinux-3bac1c51dc2d61038155b298792e3663b356c0c4.tar.xz
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 <glen.lee@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r--drivers/staging/wilc1000/linux_wlan_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan_spi.c b/drivers/staging/wilc1000/linux_wlan_spi.c
index 190243a..6111405 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,