lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 18 May 2017 22:59:29 +0300
From:   Rami Rosen <rami.rosen@...el.com>
To:     linux-kernel@...r.kernel.org
Cc:     corbet@....net, shuahkh@....samsung.com,
        Rami Rosen <rami.rosen@...el.com>
Subject: [PATCH] tools: remove unused variable in accounting/getdelays.c.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ