Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sandhya Bankar and committed by
Greg Kroah-Hartman
78f70e6d a667dbce

+1 -1
+1 -1
drivers/staging/rtl8712/rtl8712_xmit.c
··· 629 629 630 630 phwxmits = pxmitpriv->hwxmits; 631 631 hwentry = pxmitpriv->hwxmit_entry; 632 - if (pxmitbuf == NULL) { 632 + if (!pxmitbuf) { 633 633 pxmitbuf = r8712_alloc_xmitbuf(pxmitpriv); 634 634 if (!pxmitbuf) 635 635 return false;