Staging:rtl8192e Cleanup comparison to NULL
authorJanani Sankara Babu <jananis37@gmail.com>
Mon, 18 Jun 2018 16:05:45 +0000 (12:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2018 03:47:29 +0000 (11:47 +0800)
This patch replaces the comparison of var to NULL with !var

Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BAProc.c

index 95ca5f4..687dbb0 100644 (file)
@@ -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;
        }