[PATCH 1/5] certs: remove meaningless $(error ...) in certs/Makefile

From: Masahiro Yamada
Date: Fri Nov 05 2021 - 00:01:10 EST


CONFIG_MODULE_SIG_HASH is defined by init/Kconfig. This $(error ...) is
never reachable. (If it is, you need to fix the bug.)

Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
---

certs/Makefile | 3 ---
1 file changed, 3 deletions(-)

diff --git a/certs/Makefile b/certs/Makefile
index 279433783b10..db1fd2f4b950 100644
--- a/certs/Makefile
+++ b/certs/Makefile
@@ -50,9 +50,6 @@ ifdef SIGN_KEY
# fail and that the kernel may be used afterwards.
#
###############################################################################
-ifndef CONFIG_MODULE_SIG_HASH
-$(error Could not determine digest type to use from kernel config)
-endif

redirect_openssl = 2>&1
quiet_redirect_openssl = 2>&1
--
2.30.2