From: Sandhya Bankar Date: Tue, 20 Sep 2016 09:06:17 +0000 (+0530) Subject: Staging: rtl8712: rtl8712_xmit: Use !x instead of x == NULL X-Git-Tag: v4.9-rc1~119^2~323 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=78f70e6dfeb9d988a3211ac010dc62c22883c1ba;p=karo-tx-linux.git 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: Sandhya Bankar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/rtl8712_xmit.c b/drivers/staging/rtl8712/rtl8712_xmit.c index 4bbf76f27ad0..c4f03a602a2e 100644 --- a/drivers/staging/rtl8712/rtl8712_xmit.c +++ b/drivers/staging/rtl8712/rtl8712_xmit.c @@ -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;