* [PATCH] spi: spidev_fdx: Remove the unused verbose counter
@ 2026-12-01 18:08 Sasha Levin
0 siblings, 0 replies; only message in thread
From: Sasha Levin @ 2026-12-01 18:08 UTC (permalink / raw)
To: Mark Brown; +Cc: Sasha Levin, linux-spi, linux-kernel, Nathan Chancellor, llvm
-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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 18:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 18:08 [PATCH] spi: spidev_fdx: Remove the unused verbose counter Sasha Levin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.