diff options
author | cxbing <chenxuebing@jari.cn> | 2022-06-09 16:44:59 +0200 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-06-17 04:58:21 +0200 |
commit | 0aed4724a8392f2567f83c9c4b9decf447d752a2 (patch) | |
tree | 02291a7f909a219b04f1a47c601a43a53aced592 /tools | |
parent | kexec_file: increase maximum file size to 4G (diff) | |
download | linux-0aed4724a8392f2567f83c9c4b9decf447d752a2.tar.xz linux-0aed4724a8392f2567f83c9c4b9decf447d752a2.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/accounting/getdelays.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/accounting/getdelays.c b/tools/accounting/getdelays.c index e83e6e47a21e..938dec0dfaad 100644 --- a/tools/accounting/getdelays.c +++ b/tools/accounting/getdelays.c @@ -45,7 +45,6 @@ exit(code); \ } while (0) -int done; int rcvbufsz; char name[100]; int dbg; @@ -285,7 +284,6 @@ int main(int argc, char *argv[]) pid_t rtid = 0; int fd = 0; - int count = 0; int write_file = 0; int maskset = 0; char *logfile = NULL; @@ -495,7 +493,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: @@ -509,7 +506,6 @@ int main(int argc, char *argv[]) printf("TGID\t%d\n", rtid); break; case TASKSTATS_TYPE_STATS: - count++; if (print_delays) print_delayacct((struct taskstats *) NLA_DATA(na)); if (print_io_accounting) |