aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Lawrence <[email protected]>2022-10-26 19:43:51 +0700
committerGreg Kroah-Hartman <[email protected]>2022-10-31 09:07:20 +0100
commit1838742b1d4e6d89d9448fba2f3340b0aaaede73 (patch)
treefbf61d7009c3a5c8c475c749b56d7e90add06277
parent1f610736f7f40efbcac07a1c100ef703c74d30c1 (diff)
staging: rtl8192e: rtllib_crypt_tkip: rewritten comparison to NULL
Rewritten a comparison to NULL with a negation operator in accordance with the Linux kernel coding-style regulations. The fix was directly recommended by the checkpatch script. Tested-by: Philipp Hortmann <[email protected]> Signed-off-by: Aaron Lawrence <[email protected]> Link: https://lore.kernel.org/r/ca33296630627020694f4b653580f689a8a3d1c7.1666787061.git.t4rmin@zohomail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/rtl8192e/rtllib_crypt_tkip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c
index b8a52b9f9d07..9fdfcc017ee6 100644
--- a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c
+++ b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c
@@ -62,7 +62,7 @@ static void *rtllib_tkip_init(int key_idx)
return NULL;
priv = kzalloc(sizeof(*priv), GFP_ATOMIC);
- if (priv == NULL)
+ if (!priv)
goto fail;
priv->key_idx = key_idx;