mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
staging: rtl8712: Remove NULL comparison
Remove NULL comparison by using '!' operator. Problem found using checkpatch.pl CHECK: Comparison to NULL could be written "!ptmpchar" Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
29b1b61435
commit
2a1283606f
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter)
|
|||
fwhdr.img_IMEM_size : fwhdr.img_SRAM_size;
|
||||
maxlen += txdscp_sz;
|
||||
ptmpchar = kmalloc(maxlen + FWBUFF_ALIGN_SZ, GFP_ATOMIC);
|
||||
if (ptmpchar == NULL)
|
||||
if (!ptmpchar)
|
||||
return ret;
|
||||
|
||||
ptx_desc = (struct tx_desc *)(ptmpchar + FWBUFF_ALIGN_SZ -
|
||||
|
|
Loading…
Reference in a new issue