From patchwork Tue Nov 17 17:14:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 84276 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70B0AA04E6; Tue, 17 Nov 2020 18:16:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A35D1C900; Tue, 17 Nov 2020 18:15:08 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6711BC8DA; Tue, 17 Nov 2020 18:15:05 +0100 (CET) IronPort-SDR: 99W2Dq8gGi6TPgYX2PnDngoBDHwFUfUDBf7ZKalUbj2evFUwPOhZuPYbWvGS0IgcjHT6WgIC9S ABaRfXuSYprg== X-IronPort-AV: E=McAfee;i="6000,8403,9808"; a="157997974" X-IronPort-AV: E=Sophos;i="5.77,486,1596524400"; d="scan'208";a="157997974" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2020 09:15:03 -0800 IronPort-SDR: Z7GGm10a+PyrxDPYyj1aTY6VHax5TX+/jGWpK1nEgcAUzUuKXZeqS/sg/IHR7F6VPXt/hvkIag DI5a+GlkCc2g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,486,1596524400"; d="scan'208";a="330146955" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.180]) by orsmga006.jf.intel.com with ESMTP; 17 Nov 2020 09:15:01 -0800 From: Ferruh Yigit To: Maryam Tahhan , Reshma Pattan , Vipin Varghese , John McNamara Cc: Ferruh Yigit , dev@dpdk.org, stable@dpdk.org Date: Tue, 17 Nov 2020 17:14:35 +0000 Message-Id: <20201117171435.2303641-5-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201117171435.2303641-1-ferruh.yigit@intel.com> References: <20201117171435.2303641-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 4/4] app/procinfo: remove useless assignment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 'flag' initialized to '0' but it is overwritten later, initial assignment can be removed. Fixes: 0101a0ec6217 ("app/procinfo: add --show-mempool") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit --- Cc: vipin.varghese@intel.com --- app/proc-info/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index dc5cc92209..52975842fa 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -1264,7 +1264,7 @@ show_ring(char *name) static void show_mempool(char *name) { - uint64_t flags = 0; + uint64_t flags; snprintf(bdr_str, MAX_STRING_LEN, " show - MEMPOOL "); STATS_BDR_STR(10, bdr_str);