]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
keys: cleanup dead code in Kconfig for FIPS_SIGNATURE_SELFTEST
authorJulian Braha <julianbraha@gmail.com>
Tue, 31 Mar 2026 12:22:14 +0000 (13:22 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 May 2026 08:15:24 +0000 (16:15 +0800)
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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/asymmetric_keys/Kconfig

index e50bd9b3e27ba9bcf7a4c048fbf65573c8187fac..6a2f664046efe610b5ab10dbcf64dd4ac49919ca 100644 (file)
@@ -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