Staging: rtl8188eu: hal: rtl8188eu_xmit.c: 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:
Shraddha Barke 2015-09-11 10:40:56 +05:30 committed by Greg Kroah-Hartman
parent cfd23644a8
commit b210e0dc60
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ static s32 pre_xmitframe(struct adapter *adapt, struct xmit_frame *pxmitframe)
goto enqueue;
pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
if (pxmitbuf == NULL)
if (!pxmitbuf)
goto enqueue;
spin_unlock_bh(&pxmitpriv->lock);