Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sandhya Bankar and committed by
Greg Kroah-Hartman
c43fcdd4 8e9253b7

+1 -1
+1 -1
drivers/staging/rtl8712/rtl8712_efuse.c
··· 248 248 u8 tmpdata[PGPKT_DATA_SIZE]; 249 249 u8 ret = true; 250 250 251 - if (data == NULL) 251 + if (!data) 252 252 return false; 253 253 if (offset > 0x0f) 254 254 return false;