Skip to contentSkip to conversation

remoteproc: dead code cleanup in Kconfig for STM32_RPROC

PATCH In review Julian Braha 3 participants 4 messages Mar 30 – Apr 2 Remote processor (remoteproc)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remoteproc: dead code cleanup in Kconfig for STM32_RPROC

There is already an 'if REMOTEPROC' condition wrapping this config option, making the 'depends on PCI' 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.

---
 drivers/remoteproc/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/remoteproc/Kconfig +0 -1
index ee54436fea5a..c78e431b7b2d 100644
@@ -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
Signature · 1 line
2.51.2
Acked-by on v1 1/1
#1 lore raw

Hello,

Quoted 18 lines · Julian Braha

There is already an 'if REMOTEPROC' condition wrapping this config option, making the 'depends on PCI' 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.

---
  drivers/remoteproc/Kconfig | 1 -
  1 file changed, 1 deletion(-)
drivers/remoteproc/Kconfig +0 -0
index ee54436fea5a..c78e431b7b2d 100644

drivers/remoteproc/Kconfig config ST_SLIM_REMOTEPROC · line 321

Quoted 7 lines
drivers/remoteproc/Kconfig +0 -1
@@ -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

Thanks,
Arnaud

maintainer
#2 lore raw
In reply to Julian Braha
Quoted 2 lines · Julian Braha

There is already an 'if REMOTEPROC' condition wrapping this config option, making the 'depends on PCI' statement a duplicate dependency (dead code).

You likely meant "REMOTEPROC".

Quoted 26 lines

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.

---
 drivers/remoteproc/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/remoteproc/Kconfig +0 -1
index ee54436fea5a..c78e431b7b2d 100644
@@ -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
Signature · 1 line
2.51.2