mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tools: remove unused variable in accounting/getdelays.c.
@ 2017-05-18 19:59 Rami Rosen
  0 siblings, 0 replies; only message in thread
From: Rami Rosen @ 2017-05-18 19:59 UTC (permalink / raw)
  To: linux-kernel; +Cc: corbet, shuahkh, Rami Rosen

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.rosen@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-18 19:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-18 19:59 [PATCH] tools: remove unused variable in accounting/getdelays.c Rami Rosen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®