Skip to contentSkip to conversation

net: microchip: dead code cleanup in kconfig for FDMA

PATCH Applied Julian Braha 2 participants 2 messages Mar 29 – Apr 2

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: microchip: dead code cleanup in kconfig for FDMA

The Kconfig in the parent directory already has the first 'if NET_VENDOR_MICROCHIP' gating the inclusion of this Kconfig, meaning that the second
'if NET_VENDOR_MICROCHIP' condition is effectively dead code.

I propose removing the second 'if NET_VENDOR_MICROCHIP' in drivers/net/ethernet/microchip/fdma/Kconfig

This dead code was found by kconfirm, a static analysis tool for Kconfig.

---
 drivers/net/ethernet/microchip/fdma/Kconfig | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/ethernet/microchip/fdma/Kconfig +0 -4
index ec228c061351..57a54e7167d3 100644
@@ -3,8 +3,6 @@
 # Microchip FDMA API configuration
 #
 
-if NET_VENDOR_MICROCHIP
-
 config FDMA
 	bool "FDMA API" if COMPILE_TEST
 	help
@@ -14,5 +12,3 @@ config FDMA
 	  Say Y here if you want to build the FDMA API that provides a common
 	  set of functions and data structures for interacting with the Frame
 	  DMA engine in multiple microchip switchcores.
-
-endif # NET_VENDOR_MICROCHIP
Signature · 1 line
2.51.2
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Sun, 29 Mar 2026 19:53:48 +0100 you wrote:

The Kconfig in the parent directory already has the first 'if NET_VENDOR_MICROCHIP' gating the inclusion of this Kconfig, meaning that the second
'if NET_VENDOR_MICROCHIP' condition is effectively dead code.

I propose removing the second 'if NET_VENDOR_MICROCHIP' in drivers/net/ethernet/microchip/fdma/Kconfig

[...]

Here is the summary with links:
- net: microchip: dead code cleanup in kconfig for FDMA

    https://git.kernel.org/netdev/net-next/c/48c6255cda81

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html