From: Julian Braha <julianbraha@gmail.com>
To: srini@kernel.org
Cc: rafal@milecki.pl, sboyd@codeaurora.org,
linux-kernel@vger.kernel.org,
Julian Braha <julianbraha@gmail.com>
Subject: [PATCH] nvmem: cleanup dead code in Kconfig
Date: Tue, 31 Mar 2026 13:04:59 +0100 [thread overview]
Message-ID: <20260331120459.99382-1-julianbraha@gmail.com> (raw)
There is already an 'if NVMEM' condition wrapping NVMEM_RCAR_EFUSE,
making the 'depends on' statement a duplicate dependency (dead code).
I propose leaving the outer 'if NVMEM...endif' and removing the
individual 'depends on' statement.
This dead code was found by kconfirm, a static analysis tool for Kconfig.
Signed-off-by: Julian Braha <julianbraha@gmail.com>
---
drivers/nvmem/Kconfig | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index 74ddbd0f79b0..a6f422a5a9a5 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -303,7 +303,6 @@ config NVMEM_RAVE_SP_EEPROM
config NVMEM_RCAR_EFUSE
tristate "Renesas R-Car Gen4 E-FUSE support"
depends on (ARCH_RENESAS && ARM64) || COMPILE_TEST
- depends on NVMEM
help
Enable support for reading the fuses in the E-FUSE or OTP
non-volatile memory block on Renesas R-Car Gen4 SoCs.
@@ -483,4 +482,4 @@ config NVMEM_QORIQ_EFUSE
This driver can also be built as a module. If so, the module
will be called nvmem_qoriq_efuse.
-endif
+endif # NVMEM
--
2.51.2
next reply other threads:[~2026-03-31 12:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-31 12:04 Julian Braha [this message]
2026-05-19 15:57 ` Srinivas Kandagatla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260331120459.99382-1-julianbraha@gmail.com \
--to=julianbraha@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rafal@milecki.pl \
--cc=sboyd@codeaurora.org \
--cc=srini@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®