net: microchip: dead code cleanup in kconfig for FDMA
Subsystems (3)
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
@@ -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
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
Kconfigin the parent directory already has the first 'ifNET_VENDOR_MICROCHIP' gating the inclusion of thisKconfig, meaning that the second
'ifNET_VENDOR_MICROCHIP' condition is effectively dead code.I propose removing the second 'if
NET_VENDOR_MICROCHIP' indrivers/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