summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Braha <julianbraha@gmail.com>2026-03-29 21:53:48 +0300
committerJakub Kicinski <kuba@kernel.org>2026-04-02 05:50:12 +0300
commit48c6255cda812b04a23d92bdc82eb523d9abd712 (patch)
treeda355f13fb383e318c82fb48be148d28f88d2d3e
parent6152f40d4f9337b3f2090d0cffeb13831c3cefc6 (diff)
downloadlinux-48c6255cda812b04a23d92bdc82eb523d9abd712.tar.xz
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. 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>
-rw-r--r--drivers/net/ethernet/microchip/fdma/Kconfig4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/microchip/fdma/Kconfig b/drivers/net/ethernet/microchip/fdma/Kconfig
index ec228c061351..57a54e7167d3 100644
--- a/drivers/net/ethernet/microchip/fdma/Kconfig
+++ b/drivers/net/ethernet/microchip/fdma/Kconfig
@@ -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