[PATCH] spi: spidev_fdx: Remove the unused verbose counter

From: Sasha Levin

Date: Tue Dec 01 2026 - 13:09:29 EST


-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@xxxxxxxxxx>
---
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