From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755111AbdERT6V (ORCPT ); Thu, 18 May 2017 15:58:21 -0400 Received: from mga09.intel.com ([134.134.136.24]:44214 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751511AbdERT6U (ORCPT ); Thu, 18 May 2017 15:58:20 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,360,1491289200"; d="scan'208";a="88939174" From: Rami Rosen To: linux-kernel@vger.kernel.org Cc: corbet@lwn.net, shuahkh@osg.samsung.com, Rami Rosen Subject: [PATCH] tools: remove unused variable in accounting/getdelays.c. Date: Thu, 18 May 2017 22:59:29 +0300 Message-Id: <1495137569-28449-1-git-send-email-rami.rosen@intel.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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