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 16FA2A0542 for ; Fri, 18 Nov 2022 09:55:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD2CE42D3C; Fri, 18 Nov 2022 09:55:14 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 99DC842D36 for ; Fri, 18 Nov 2022 09:55:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668761713; 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=mowp3fRhH95mTtAvf2xhYOMztca9CcYuqk+RfYNfkX0=; b=EcnE1vefG1bdpeSWiyNv7T5yI0WutHUsWFrM7uJqY712piaVci3QsWwv7OUfPmSE0Fb11O NlrpaM1ARy381aHPDSySwVcQ+r/d8ZVITi1XwIcSsxfwx9TNEA0r6/nVZJlX1eiM58IG5u gwp9c6keRWEgvKyKse8G7M7DPHXA794= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-189-DchEbWsDPpukiOxOY5Utuw-1; Fri, 18 Nov 2022 03:55:09 -0500 X-MC-Unique: DchEbWsDPpukiOxOY5Utuw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C5B2E811E81; Fri, 18 Nov 2022 08:55:08 +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 CB54B4EA59; Fri, 18 Nov 2022 08:55:07 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Igor Russkikh , Pavel Belous Subject: [PATCH 04/11] net/atlantic: fix build with clang 15 Date: Fri, 18 Nov 2022 09:53:06 +0100 Message-Id: <20221118085313.2118977-5-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.5 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: 2b1472d7150c ("net/atlantic: implement Tx path") Cc: stable@dpdk.org Signed-off-by: David Marchand --- drivers/net/atlantic/atl_rxtx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/atlantic/atl_rxtx.c b/drivers/net/atlantic/atl_rxtx.c index aeb79bf5a2..cb6f8141a8 100644 --- a/drivers/net/atlantic/atl_rxtx.c +++ b/drivers/net/atlantic/atl_rxtx.c @@ -1127,10 +1127,9 @@ atl_xmit_cleanup(struct atl_tx_queue *txq) if (txq != NULL) { sw_ring = txq->sw_ring; int head = txq->tx_head; - int cnt; - int i; + int cnt = head; - for (i = 0, cnt = head; ; i++) { + while (true) { txd = &txq->hw_ring[cnt]; if (txd->dd) -- 2.38.1