From: Julian Braha Date: Fri, 17 Apr 2026 22:13:37 +0000 (+0100) Subject: remoteproc: Dead code cleanup in Kconfig for STM32_RPROC X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9915120d004a8e9e64afee138dd448cd7cad9bc;p=thirdparty%2Fkernel%2Flinux.git remoteproc: Dead code cleanup in Kconfig for STM32_RPROC There is already an 'if REMOTEPROC' condition wrapping this config option, making the 'depends on REMOTEPROC' statement a duplicate dependency (dead code). I propose leaving the outer 'if REMOTEPROC...endif' and removing the individual 'depends on REMOTEPROC' statement. This dead code was found by kconfirm, a static analysis tool for Kconfig. Signed-off-by: Julian Braha Acked-by: Arnaud Pouliquen Link: https://lore.kernel.org/r/20260417221337.286313-1-julianbraha@gmail.com Signed-off-by: Mathieu Poirier --- diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig index ee54436fea5ad..c78e431b7b2d8 100644 --- a/drivers/remoteproc/Kconfig +++ b/drivers/remoteproc/Kconfig @@ -316,7 +316,6 @@ config ST_SLIM_REMOTEPROC config STM32_RPROC tristate "STM32 remoteproc support" depends on ARCH_STM32 || COMPILE_TEST - depends on REMOTEPROC select MAILBOX help Say y here to support STM32 MCU processors via the