From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 67244A00C2; Wed, 4 Jan 2023 04:38:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3263F42D24; Wed, 4 Jan 2023 04:38:23 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id DFDB1410EA for ; Wed, 4 Jan 2023 04:38:20 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id b2so34677611pld.7 for ; Tue, 03 Jan 2023 19:38:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BcbiZfeAd7J4QDl8yZOVcmFwXRmMXn5bFXNYfgywwLE=; b=OKYreuAN40iJ8DeArFYrrT6G/wgNNpyS0jpaITZRlSF3kz8gjpfjZFsbh7VokYYC6Z ESlDSK/gMLGpZj+GE6OrFnKRPVR5Nl9GtkcBUzJHeSE5NAFcoJFKhsb2fhv8XBCFtZb5 cIdgjByCsFFQWdCYjm/j1iCgYa754LQfc3oZZBL1eit/Q0q9cj5kgZLd0kNNAJkWhoBC 9FLOlfmbpyztffQ7QWrI1XvIcySHldHg710cv2n3RlFclD4t0zDdL8vy2FPyKHFki5yf 25eZsBB8ML5QXlCGUuCpJu9rRXQfpwudtOLKUxZ6Nln3tpywrcZLJqO/xqJdvih5L4U1 Z/tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BcbiZfeAd7J4QDl8yZOVcmFwXRmMXn5bFXNYfgywwLE=; b=x53Ei8Zwspm47BcqWp3G05xS1wmVJr7rrkSrhAB8V0Nd9FZ9uGLA7gpYOCVZIJmuJS SpafMfA8NHp9pnwqXmZIyA0czytrVGAqk4yhspEhPCJIKeW6rn075sLBITttpXuEs2re k7/9kYEdu7poLM+UYNWYmAwxc4NhwWLFLdr0kCmsv45sksKdJdHYMsd1zyW9QTMLAU1z PzfxjcqQnr+qlCnnNJ174FJtiAufmyb6Xw0l7DxaKQtkRJyRRXTOebZ96BPpCKzlBynW rckBgro7CvrcApLZ9H9T6VEoErQD3xeoeGrJQKizytwhgWmii/hKC/MY0fsby6xMHmdB GY+w== X-Gm-Message-State: AFqh2kpmQckOZav5GDLHhNUiDhJTBmX9hyGpqUYc7ish6C8+c2VwYc3A yBFklBqvwlKGNapReSCca5fyYw== X-Google-Smtp-Source: AMrXdXtTsx6uG0urg8smi5naVSIYGSD+kMqwYJLNVMSQjgW2FMpBMct64kUxyKn7RwKgc79TeaVegw== X-Received: by 2002:a17:902:f784:b0:192:b5a8:3eb6 with SMTP id q4-20020a170902f78400b00192b5a83eb6mr15397270pln.44.1672803500167; Tue, 03 Jan 2023 19:38:20 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id c10-20020a170903234a00b0017f73caf588sm23091347plh.218.2023.01.03.19.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 19:38:19 -0800 (PST) From: Stephen Hemminger To: Ben Magistro Cc: dev@dpdk.org, Stephen Hemminger Subject: [PATCH v2 2/6] app/dumpcap: remove unused variable Date: Tue, 3 Jan 2023 19:38:11 -0800 Message-Id: <20230104033815.35496-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230104033815.35496-1-stephen@networkplumber.org> References: <20230102162441.6205-1-koncept1@gmail.com> <20230104033815.35496-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The port2intf variable was set but never used. Signed-off-by: Stephen Hemminger --- app/dumpcap/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c index 4751ca26b892..1c47ff851252 100644 --- a/app/dumpcap/main.c +++ b/app/dumpcap/main.c @@ -90,7 +90,6 @@ struct interface { TAILQ_HEAD(interface_list, interface); static struct interface_list interfaces = TAILQ_HEAD_INITIALIZER(interfaces); -static struct interface *port2intf[RTE_MAX_ETHPORTS]; /* Can do either pcap or pcapng format output */ typedef union { @@ -207,7 +206,6 @@ static void add_interface(uint16_t port, const char *name) printf("Capturing on '%s'\n", name); - port2intf[port] = intf; TAILQ_INSERT_TAIL(&interfaces, intf, next); } -- 2.39.0