From: Sandhya Bankar Date: Tue, 20 Sep 2016 09:01:50 +0000 (+0530) Subject: Staging: rtl8712: rtl8712_efuse: Use !x instead of x == NULL. X-Git-Tag: v4.9-rc1~119^2~325 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c43fcdd4434b7afef7f37bdad1c51b877cffc4ce;p=karo-tx-linux.git Staging: rtl8712: rtl8712_efuse: Use !x instead of x == NULL. Use !x instead of x == NULL. This patch was found by checkpatch. Signed-off-by: Sandhya Bankar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/rtl8712_efuse.c b/drivers/staging/rtl8712/rtl8712_efuse.c index 76f60ba5ee9b..205298e23656 100644 --- a/drivers/staging/rtl8712/rtl8712_efuse.c +++ b/drivers/staging/rtl8712/rtl8712_efuse.c @@ -248,7 +248,7 @@ u8 r8712_efuse_pg_packet_read(struct _adapter *padapter, u8 offset, u8 *data) u8 tmpdata[PGPKT_DATA_SIZE]; u8 ret = true; - if (data == NULL) + if (!data) return false; if (offset > 0x0f) return false;