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: v5.15~12752^2~323 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78f70e6dfeb9d988a3211ac010dc62c22883c1ba;p=platform%2Fkernel%2Flinux-starfive.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 4bbf76f..c4f03a6 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;