mirror of https://gitee.com/openkylin/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 <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8e9253b777
commit
c43fcdd443
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue