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 3717CA0543 for ; Fri, 18 Nov 2022 09:55:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0A0142D4C; Fri, 18 Nov 2022 09:55:21 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id C460D42D38 for ; Fri, 18 Nov 2022 09:55:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668761719; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uUaniDga2fTY4DekwcSZ24+KNerZJu0Xf3Mn+J9nAb8=; b=h2uBgVPCs1N0AhAGQv4o3+/1vxYTDpvQOmW57XpUun4pIN7jC2XRT9nOOawxpG+IwrEqF+ 7tmZeRgsC0LoRNTYWvxJ8AMECBRFs7lsnDTnkHPy3ANrHr7ewlzEEqq5E7fgRij6DhqKb7 6OIpdGVZBOBjJUEXRLHYahvf6yZqkvg= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-364-6nWA6ZAyObOPWJ2X7O7www-1; Fri, 18 Nov 2022 03:55:15 -0500 X-MC-Unique: 6nWA6ZAyObOPWJ2X7O7www-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4F9E3383D0C7; Fri, 18 Nov 2022 08:55:15 +0000 (UTC) Received: from localhost.localdomain (ovpn-192-54.brq.redhat.com [10.40.192.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 149D640E9920; Fri, 18 Nov 2022 08:55:13 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Qiming Yang , Qi Zhang , Steve Yang Subject: [PATCH 06/11] net/ice: fix build with clang 15 Date: Fri, 18 Nov 2022 09:53:08 +0100 Message-Id: <20221118085313.2118977-7-david.marchand@redhat.com> In-Reply-To: <20221118085313.2118977-1-david.marchand@redhat.com> References: <20221118085313.2118977-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org This variable is not used. Fixes: 0d8d7bd720ba ("net/ice: support DDP dump switch rule binary") Cc: stable@dpdk.org Signed-off-by: David Marchand --- drivers/net/ice/ice_ddp_package.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ice/ice_ddp_package.c b/drivers/net/ice/ice_ddp_package.c index a27a4a2da2..0aa19eb282 100644 --- a/drivers/net/ice/ice_ddp_package.c +++ b/drivers/net/ice/ice_ddp_package.c @@ -439,7 +439,6 @@ ice_dump_switch(struct rte_eth_dev *dev, uint8_t **buff2, uint32_t *size) int i = 0; uint16_t tbl_id = 0; uint32_t tbl_idx = 0; - int tbl_cnt = 0; uint8_t *buffer = *buff2; hw = ICE_DEV_PRIVATE_TO_HW(dev->data->dev_private); @@ -481,10 +480,8 @@ ice_dump_switch(struct rte_eth_dev *dev, uint8_t **buff2, uint32_t *size) free(buff); - tbl_cnt++; if (tbl_idx == 0xffffffff) { tbl_idx = 0; - tbl_cnt = 0; memset(buffer, '\n', sizeof(char)); buffer++; offset = 0; -- 2.38.1