delayacct: remove some unused variables
authorcxbing <chenxuebing@jari.cn>
Thu, 9 Jun 2022 14:44:59 +0000 (07:44 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 17 Jun 2022 02:58:21 +0000 (19:58 -0700)
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>
tools/accounting/getdelays.c

index e83e6e47a21ea176f2f489d073733a092c7687dc..938dec0dfaad844caf823024812c8e79b9c81a2f 100644 (file)
@@ -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)