mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rami Rosen <rami.rosen@intel.com>
To: linux-kernel@vger.kernel.org
Cc: corbet@lwn.net, shuahkh@osg.samsung.com,
	Rami Rosen <rami.rosen@intel.com>
Subject: [PATCH] tools: remove unused variable in accounting/getdelays.c.
Date: Thu, 18 May 2017 22:59:29 +0300	[thread overview]
Message-ID: <1495137569-28449-1-git-send-email-rami.rosen@intel.com> (raw)

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

                 reply	other threads:[~2017-05-18 19:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1495137569-28449-1-git-send-email-rami.rosen@intel.com \
    --to=rami.rosen@intel.com \
    --cc=corbet@lwn.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shuahkh@osg.samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®