This patch removes the definition and the single assignement of the "done" variable in accounting/getdelays.c, as it is not used anywhere.
Signed-off-by: Rami Rosen <rami.ro...@intel.com> --- tools/accounting/getdelays.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/accounting/getdelays.c b/tools/accounting/getdelays.c index b5ca536..010df87 100644 --- a/tools/accounting/getdelays.c +++ b/tools/accounting/getdelays.c @@ -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: -- 1.9.1