Staging: rtl8712: rtl8712_xmit: Use !x instead of x == NULL
authorSandhya Bankar <bankarsandhya512@gmail.com>
Tue, 20 Sep 2016 09:06:17 +0000 (14:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:38:00 +0000 (13:38 +0200)
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>
drivers/staging/rtl8712/rtl8712_xmit.c

index 4bbf76f..c4f03a6 100644 (file)
@@ -629,7 +629,7 @@ int r8712_xmitframe_complete(struct _adapter *padapter,
 
        phwxmits = pxmitpriv->hwxmits;
        hwentry = pxmitpriv->hwxmit_entry;
-       if (pxmitbuf == NULL) {
+       if (!pxmitbuf) {
                pxmitbuf = r8712_alloc_xmitbuf(pxmitpriv);
                if (!pxmitbuf)
                        return false;