From d21c4c9fd16bee7db67f75627ea607dadf8bb5f3 Mon Sep 17 00:00:00 2001 From: Elliott Hughes 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.39.2