---
toys/other/lsusb.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
From d4fba917d94ef715a55a2133d01cb6986b64386f Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Fri, 19 Aug 2022 16:33:45 -0700
Subject: [PATCH] lsusb: remove unused variable.
---
toys/other/lsusb.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/toys/other/lsusb.c b/toys/other/lsusb.c
index 836c4f68..382e7a35 100644
--- a/toys/other/lsusb.c
+++ b/toys/other/lsusb.c
@@ -113,7 +113,7 @@ struct dev_ids *parse_dev_ids(char *name, struct dev_ids **and)
FILE *fp;
char *s, *ss, *sss;
struct dev_ids *ids = 0, *new;
- int fd = -1, tick = 0;
+ int fd = -1;
// Open compressed or uncompressed file
sprintf(toybuf, "%s.gz", name);
@@ -132,8 +132,7 @@ struct dev_ids *parse_dev_ids(char *name, struct dev_ids **and)
if (strstart(&ss, "C ") && and) {
*and = ids;
and = 0;
- tick++;
- }
+ }
fd = estrtol(sss = ss, &ss, 16);
if (ss>sss && *ss++==' ') {
while (isspace(*ss)) ss++;
--
2.37.1.595.g718a3a8f04-goog
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net