Commit 78f70e6d authored by Sandhya Bankar's avatar Sandhya Bankar Committed by Greg Kroah-Hartman

Staging: rtl8712: rtl8712_xmit: Use !x instead of x == NULL

Use !x instead of x == NULL. This patch was found by checkpatch.
Signed-off-by: default avatarSandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a667dbce
...@@ -629,7 +629,7 @@ int r8712_xmitframe_complete(struct _adapter *padapter, ...@@ -629,7 +629,7 @@ int r8712_xmitframe_complete(struct _adapter *padapter,
phwxmits = pxmitpriv->hwxmits; phwxmits = pxmitpriv->hwxmits;
hwentry = pxmitpriv->hwxmit_entry; hwentry = pxmitpriv->hwxmit_entry;
if (pxmitbuf == NULL) { if (!pxmitbuf) {
pxmitbuf = r8712_alloc_xmitbuf(pxmitpriv); pxmitbuf = r8712_alloc_xmitbuf(pxmitpriv);
if (!pxmitbuf) if (!pxmitbuf)
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment