LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 4/4] Staging:rtl8192e Cleanup comparison to NULL
@ 2018-06-08  4:34 Janani Sankara Babu
  0 siblings, 0 replies; only message in thread
From: Janani Sankara Babu @ 2018-06-08  4:34 UTC (permalink / raw)
  To: gregkh
  Cc: johannes.berg, davem, keescook, Rene.Hickersberger, devel,
	linux-kernel, Janani Sankara Babu

This patch replaces the comparison of var to NULL with !var

Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
---
 drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c
index c6de34a..7ea9271 100644
--- a/drivers/staging/rtl8192e/rtl819x_BAProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c
@@ -83,7 +83,7 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst,
 	netdev_dbg(ieee->dev, "%s(): frame(%d) sentd to: %pM, ieee->dev:%p\n",
 		   __func__, type, Dst, ieee->dev);

-	if (pBA == NULL) {
+	if (!pBA) {
 		netdev_warn(ieee->dev, "pBA is NULL\n");
 		return NULL;
 	}
--
1.9.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-07 18:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-08  4:34 [PATCH 4/4] Staging:rtl8192e Cleanup comparison to NULL Janani Sankara Babu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).