Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

delayacct: remove some unused variables

Drop the unused variables *done* and *count*.

Link: https://lkml.kernel.org/r/20220609144459.86379-1-zhangkkoo@126.com
Signed-off-by: cxbing <chenxuebing@jari.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

cxbing and committed by
akpm
0aed4724 f4da7afe

-4
-4
tools/accounting/getdelays.c
··· 45 45 exit(code); \ 46 46 } while (0) 47 47 48 - int done; 49 48 int rcvbufsz; 50 49 char name[100]; 51 50 int dbg; ··· 284 285 pid_t rtid = 0; 285 286 286 287 int fd = 0; 287 - int count = 0; 288 288 int write_file = 0; 289 289 int maskset = 0; 290 290 char *logfile = NULL; ··· 493 495 len2 = 0; 494 496 /* For nested attributes, na follows */ 495 497 na = (struct nlattr *) NLA_DATA(na); 496 - done = 0; 497 498 while (len2 < aggr_len) { 498 499 switch (na->nla_type) { 499 500 case TASKSTATS_TYPE_PID: ··· 506 509 printf("TGID\t%d\n", rtid); 507 510 break; 508 511 case TASKSTATS_TYPE_STATS: 509 - count++; 510 512 if (print_delays) 511 513 print_delayacct((struct taskstats *) NLA_DATA(na)); 512 514 if (print_io_accounting)