]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
remoteproc: Dead code cleanup in Kconfig for STM32_RPROC
authorJulian Braha <julianbraha@gmail.com>
Fri, 17 Apr 2026 22:13:37 +0000 (23:13 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 27 Apr 2026 17:21:32 +0000 (11:21 -0600)
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 <julianbraha@gmail.com>
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20260417221337.286313-1-julianbraha@gmail.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/Kconfig

index ee54436fea5ad08a9c198ce74d44ce7a9aa206de..c78e431b7b2d89b43101041af7f436426f903533 100644 (file)
@@ -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