* [PATCH] keys: cleanup dead code in Kconfig for FIPS_SIGNATURE_SELFTEST
@ 2026-03-31 12:22 Julian Braha
0 siblings, 0 replies; only message in thread
From: Julian Braha @ 2026-03-31 12:22 UTC (permalink / raw)
To: dhowells, rusty
Cc: lukas, ignat, keyrings, linux-crypto, linux-kernel, Julian Braha
There is already an 'if ASYMMETRIC_KEY_TYPE' condition wrapping
FIPS_SIGNATURE_SELFTEST, making the 'depends on' statement a
duplicate dependency (dead code).
I propose leaving the outer 'if ASYMMETRIC_KEY_TYPE...endif' and removing
the individual 'depends on' statement.
This dead code was found by kconfirm, a static analysis tool for Kconfig.
Signed-off-by: Julian Braha <julianbraha@gmail.com>
---
crypto/asymmetric_keys/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/crypto/asymmetric_keys/Kconfig b/crypto/asymmetric_keys/Kconfig
index e50bd9b3e27b..6a2f664046ef 100644
--- a/crypto/asymmetric_keys/Kconfig
+++ b/crypto/asymmetric_keys/Kconfig
@@ -95,7 +95,6 @@ config FIPS_SIGNATURE_SELFTEST
verification code, using some built in data. This is required
for FIPS.
depends on KEYS
- depends on ASYMMETRIC_KEY_TYPE
depends on PKCS7_MESSAGE_PARSER=X509_CERTIFICATE_PARSER
depends on X509_CERTIFICATE_PARSER
depends on CRYPTO_RSA
--
2.51.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-31 12:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31 12:22 [PATCH] keys: cleanup dead code in Kconfig for FIPS_SIGNATURE_SELFTEST Julian Braha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox