Skip to content

Commit 0aed472

Browse files
cxbingakpm00
authored andcommitted
delayacct: remove some unused variables
Drop the unused variables *done* and *count*. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: cxbing <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent f4da7af commit 0aed472

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tools/accounting/getdelays.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
exit(code); \
4646
} while (0)
4747

48-
int done;
4948
int rcvbufsz;
5049
char name[100];
5150
int dbg;
@@ -285,7 +284,6 @@ int main(int argc, char *argv[])
285284
pid_t rtid = 0;
286285

287286
int fd = 0;
288-
int count = 0;
289287
int write_file = 0;
290288
int maskset = 0;
291289
char *logfile = NULL;
@@ -495,7 +493,6 @@ int main(int argc, char *argv[])
495493
len2 = 0;
496494
/* For nested attributes, na follows */
497495
na = (struct nlattr *) NLA_DATA(na);
498-
done = 0;
499496
while (len2 < aggr_len) {
500497
switch (na->nla_type) {
501498
case TASKSTATS_TYPE_PID:
@@ -509,7 +506,6 @@ int main(int argc, char *argv[])
509506
printf("TGID\t%d\n", rtid);
510507
break;
511508
case TASKSTATS_TYPE_STATS:
512-
count++;
513509
if (print_delays)
514510
print_delayacct((struct taskstats *) NLA_DATA(na));
515511
if (print_io_accounting)

0 commit comments

Comments
 (0)