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 D82B4A0542 for ; Fri, 18 Nov 2022 09:55:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D29B842D1F; Fri, 18 Nov 2022 09:55:10 +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 A091F42D27 for ; Fri, 18 Nov 2022 09:55:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668761708; 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=+wnZZgNO7wpJGwyzIQWnbtoYomzzCIlKO/3BdF2Fo+w=; b=YO4AzIgNkpzlnGmCAlldRBGeGRLCF9as24CYiDO+azGRWaXYziTJ6ftyfQABA0ZGzM7xJZ VJZ+GEpAL/9xEExZ1aj8BRTK8BzKCTOSZFrbb97UI64/ZRViMvXMn20kuoGoJpQijieCiC SPSUa1s0Ndc4PhtWiN7iec3FRuj5no0= 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-339-yTVjeHu2PSSumxjpg4sgpA-1; Fri, 18 Nov 2022 03:55:06 -0500 X-MC-Unique: yTVjeHu2PSSumxjpg4sgpA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A9D07833A0D; Fri, 18 Nov 2022 08:55:05 +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 3DA79492B04; Fri, 18 Nov 2022 08:55:04 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Hemant Agrawal , Sachin Saxena , Shreyansh Jain , Roy Pledge , Geoff Thorpe Subject: [PATCH 03/11] bus/dpaa: fix build with clang 15 Date: Fri, 18 Nov 2022 09:53:05 +0100 Message-Id: <20221118085313.2118977-4-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.10 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: f38f61e982f8 ("bus/dpaa: add BMAN hardware interfaces") Cc: stable@dpdk.org Signed-off-by: David Marchand --- drivers/bus/dpaa/base/qbman/bman.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/dpaa/base/qbman/bman.h b/drivers/bus/dpaa/base/qbman/bman.h index 21a6bee778..b2aa93e046 100644 --- a/drivers/bus/dpaa/base/qbman/bman.h +++ b/drivers/bus/dpaa/base/qbman/bman.h @@ -519,7 +519,6 @@ static inline int bm_shutdown_pool(struct bm_portal *p, u32 bpid) struct bm_mc_command *bm_cmd; struct bm_mc_result *bm_res; - int aq_count = 0; bool stop = false; while (!stop) { @@ -532,8 +531,7 @@ static inline int bm_shutdown_pool(struct bm_portal *p, u32 bpid) if (!(bm_res->verb & BM_MCR_VERB_ACQUIRE_BUFCOUNT)) { /* Pool is empty */ stop = true; - } else - ++aq_count; + } }; return 0; } -- 2.38.1