From: Sasha Levin <sashal@kernel.org>
To: Mark Brown <broonie@kernel.org>
Cc: Sasha Levin <sashal@kernel.org>,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org,
Nathan Chancellor <nathan@kernel.org>,
llvm@lists.linux.dev
Subject: [PATCH] spi: spidev_fdx: Remove the unused verbose counter
Date: Tue, 1 Dec 2026 13:08:55 -0500 [thread overview]
Message-ID: <20261201180855.740952-7-sashal@kernel.org> (raw)
-v only increments verbose, and nothing reads it. clang 23 warns about
that:
spidev_fdx.c:16:12: warning: variable 'verbose' set but not used [-Wunused-but-set-global]
Remove the variable. -v is still accepted.
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
tools/spi/spidev_fdx.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/spi/spidev_fdx.c b/tools/spi/spidev_fdx.c
index 45f0fd2444dda..b8c76873c44b9 100644
--- a/tools/spi/spidev_fdx.c
+++ b/tools/spi/spidev_fdx.c
@@ -13,8 +13,6 @@
#include <linux/spi/spidev.h>
-static int verbose;
-
static int do_read(int fd, int len)
{
unsigned char buf[32], *bp;
@@ -127,7 +125,6 @@ int main(int argc, char **argv)
goto usage;
continue;
case 'v':
- verbose++;
continue;
case 'h':
case '?':
--
2.53.0
reply other threads:[~2026-12-01 18:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261201180855.740952-7-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=nathan@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