> 25 aug. 2017 kl. 01:20 skrev Arnd Bergmann :
>
> Without CONFIG_DEBUG_FS, we get a harmless warning:
>
> drivers/crypto/axis/artpec6_crypto.c:352:23: error: 'dbgfs_root' defined but
> not used [-Werror=unused-variable]
>
> This moves it into the #ifdef that hides the only
kfree on NULL pointer is a no-op and therefore checking it is redundant.
Signed-off-by: Himanshu Jha
---
drivers/crypto/n2_core.c | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c
Kfree on NULL pointer is a no-op and therefore checking is redundant.
Signed-off-by: Himanshu Jha
---
drivers/crypto/inside-secure/safexcel_hash.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/crypto/inside-secure/safexcel_hash.c
*** BLURB HERE ***
Himanshu Jha (2):
crypto: n2 - remove null check before kfree
crypto: inside-secure - remove null check before kfree
drivers/crypto/inside-secure/safexcel_hash.c | 6 ++
drivers/crypto/n2_core.c | 12
2 files changed, 6 insertions(+),
From: Himanshu Jha
Date: Sun, 27 Aug 2017 02:45:29 +0530
> kfree on NULL pointer is a no-op and therefore checking it is redundant.
>
> Signed-off-by: Himanshu Jha
Acked-by: David S. Miller