mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
Staging: rtl8188eu: Remove explicit NULL comparison
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a544f0edb2
commit
e3789b0c54
1 changed files with 2 additions and 2 deletions
|
@ -467,7 +467,7 @@ static void SetFwRsvdPagePkt(struct adapter *adapt, bool bDLFinished)
|
||||||
|
|
||||||
DBG_88E("%s\n", __func__);
|
DBG_88E("%s\n", __func__);
|
||||||
ReservedPagePacket = kzalloc(1000, GFP_KERNEL);
|
ReservedPagePacket = kzalloc(1000, GFP_KERNEL);
|
||||||
if (ReservedPagePacket == NULL) {
|
if (!ReservedPagePacket) {
|
||||||
DBG_88E("%s: alloc ReservedPagePacket fail!\n", __func__);
|
DBG_88E("%s: alloc ReservedPagePacket fail!\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -537,7 +537,7 @@ static void SetFwRsvdPagePkt(struct adapter *adapt, bool bDLFinished)
|
||||||
|
|
||||||
TotalPacketLen = BufIndex + QosNullLength;
|
TotalPacketLen = BufIndex + QosNullLength;
|
||||||
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
||||||
if (pmgntframe == NULL)
|
if (!pmgntframe)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
/* update attribute */
|
/* update attribute */
|
||||||
|
|
Loading…
Reference in a new issue