Skip to contentSkip to conversation

tools: remove unused variable in accounting/getdelays.c.

PATCH New Rami Rosen 1 participant 1 message May 18, 2017 Task delay monitoring tools

lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

PATCH 1/1 tools: remove unused variable in accounting/getdelays.c.

This patch removes the definition and the single assignement of the "done" variable in accounting/getdelays.c, as it is not used anywhere.

---
 tools/accounting/getdelays.c | 2 --
 1 file changed, 2 deletions(-)
tools/accounting/getdelays.c +0 -2
index b5ca536..010df87 100644
@@ -44,7 +44,6 @@
 		exit(code);			\
 	} while (0)
 
-int done;
 int rcvbufsz;
 char name[100];
 int dbg;
@@ -476,7 +475,6 @@ int main(int argc, char *argv[])
 				len2 = 0;
 				/* For nested attributes, na follows */
 				na = (struct nlattr *) NLA_DATA(na);
-				done = 0;
 				while (len2 < aggr_len) {
 					switch (na->nla_type) {
 					case TASKSTATS_TYPE_PID:
Signature · 1 line
1.9.1