lkml.org 
[lkml]   [2017]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tools: remove unused variable in accounting/getdelays.c.
Date
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
\
 
 \ /
  Last update: 2017-05-18 21:59    [W:0.040 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site