]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: microchip: dead code cleanup in kconfig for FDMA
authorJulian Braha <julianbraha@gmail.com>
Sun, 29 Mar 2026 18:53:48 +0000 (19:53 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Apr 2026 02:50:12 +0000 (19:50 -0700)
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.

Signed-off-by: Julian Braha <julianbraha@gmail.com>
Link: https://patch.msgid.link/20260329185348.526893-1-julianbraha@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/fdma/Kconfig

index ec228c0613517ec3fe31292be89baabfb64c0cb6..57a54e7167d3d619695a209decf64e03ee410527 100644 (file)
@@ -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