Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp371589rwi; Mon, 31 Oct 2022 02:30:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7lMLuLhEi0GheA9GScBFQ7RWMtf22UNaI8cV+kAnXgkOcn2aANoYls93yq2GlgkPoB5xl6 X-Received: by 2002:a17:90b:1490:b0:212:68bf:fcc5 with SMTP id js16-20020a17090b149000b0021268bffcc5mr14048073pjb.52.1667208606469; Mon, 31 Oct 2022 02:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667208606; cv=none; d=google.com; s=arc-20160816; b=quLbNKX6NEmDdU1vDitSR4GXBk6ZcN5GhhJZY7yGg4HUhgfjGHXmw0Dbdo4NqIjrqF kf2pure6JQb3TrugD1jJbCoo5Cwl5IZ9oJ+uePfWGYOqU0Am5rBkj+vIWHqLeVQXBl3m LCHXlNIBuHBQB18NodHRHLu75rghjip2RvHpm1Fi0kjV8W4Hsgt5V7UWJa+69VMWCM8M fScdVLB6jjjoJdqO2YqTRTJwb0S8qbRQsNeHc7af874pc3A55yfxhYzDJDo79EECS0o7 XjLLq/C942PmseRis1rOCUmc34QOPQvvhRcwybMnXxJi4Eh5n9Vxjzy2WYikZl4d8UJI twmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=EwjwZbKsNJvSqmhRgU+Hf7MpmBh21fHe0fhPJ9cfXno=; b=n73L0K8T6M2TrvNh5ZvqJ5a6k4q9HxtiVVTph4N9mUpm9275ezZeigIis1fEdLm9ex NGfYoishf094bOENS4mDucUs92eTk8iCqfV0vrSnb/UFYNDmV/L5/JRz2anNf5F0XU+N WgVSqqV8y1aqFgI5QxBymuX9VsfVGR7dArWSI4Hu25MQhJDmh6kUTDU4+hy2Hptup4S+ WZv77EtZo9ivVXw4TW8VkPjdOFuDIRYGAQ3zL/yJTbh1S1Nh666j+FCqb9/CnwbtIL0M OGtaesz60ErDg6YmJkOovKFoqrvqAW4qzdfwrjnoaDB0/iupSPlvdgb5lmI9CVN/T1j5 nN/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a17090270cc00b00187204b35besi3174292plt.203.2022.10.31.02.29.51; Mon, 31 Oct 2022 02:30:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbiJaI5C (ORCPT + 99 others); Mon, 31 Oct 2022 04:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230049AbiJaI5B (ORCPT ); Mon, 31 Oct 2022 04:57:01 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51C1B1D3 for ; Mon, 31 Oct 2022 01:57:00 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N16TP3QSvzHvXQ; Mon, 31 Oct 2022 16:56:41 +0800 (CST) Received: from dggpemm500002.china.huawei.com (7.185.36.229) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 31 Oct 2022 16:56:47 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 31 Oct 2022 16:56:46 +0800 From: Xiongfeng Wang To: , , CC: , , Subject: [PATCH] tools/accounting/procacct: remove some unused variables Date: Mon, 31 Oct 2022 17:15:57 +0800 Message-ID: <20221031091557.192180-1-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop the following unused variables inherited from getdelays.c: 'aggr_len', 'len2', 'cmd_type', 'tid', 'containerset', 'containerpath' and 'sigset'. Signed-off-by: Xiongfeng Wang --- tools/accounting/procacct.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/accounting/procacct.c b/tools/accounting/procacct.c index 8353d3237e50..90c4a37f53d9 100644 --- a/tools/accounting/procacct.c +++ b/tools/accounting/procacct.c @@ -261,25 +261,20 @@ void handle_aggr(int mother, struct nlattr *na, int fd) int main(int argc, char *argv[]) { - int c, rc, rep_len, aggr_len, len2; - int cmd_type = TASKSTATS_CMD_ATTR_UNSPEC; + int c, rc, rep_len; __u16 id; __u32 mypid; struct nlattr *na; int nl_sd = -1; int len = 0; - pid_t tid = 0; int fd = 0; int write_file = 0; int maskset = 0; char *logfile = NULL; - int containerset = 0; - char *containerpath = NULL; int cfd = 0; int forking = 0; - sigset_t sigset; struct msgtemplate msg; -- 2.20.1