diff options
author | Janani Sankara Babu <jananis37@gmail.com> | 2018-06-18 12:05:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-26 11:47:29 +0800 |
commit | 997e66741413a304e3337dd0f904e54ed50b3cbe (patch) | |
tree | ec6b7e5ce2a884056ea8cc48717be6eaa6e179c4 /drivers/staging/rtl8192e | |
parent | 4eff3e9d971e75cc2f822596b842e2af181986a1 (diff) | |
download | linux-stable-997e66741413a304e3337dd0f904e54ed50b3cbe.tar.gz linux-stable-997e66741413a304e3337dd0f904e54ed50b3cbe.tar.bz2 linux-stable-997e66741413a304e3337dd0f904e54ed50b3cbe.zip |
Staging:rtl8192e Cleanup comparison to NULL
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>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index 95ca5f49890a..687dbb04ed2e 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; } |