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 5D11845EDF for ; Wed, 18 Dec 2024 21:03:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 577A0410E8; Wed, 18 Dec 2024 21:03:44 +0100 (CET) Received: from smtp.eurecom.fr (smtp.eurecom.fr [193.55.113.210]) by mails.dpdk.org (Postfix) with ESMTP id BABC3410DC; Wed, 18 Dec 2024 21:03:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734552222; x=1766088222; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Brn+jyRK45QHTdWyfOUKvWKFmv8zItJJyYLlv47hqlo=; b=QEsCuW+tMTjwJcOWwhMqL/01F8bCmMgTEPaO0EqbvAjhdK4hIxPazkd0 ssG492OBZUt13TDrbbpybjuAwUBFxVTqV8viKLN4vvellhVL4DXjoNJ3s /I1jOH1E3lERhcuoRW7wmyzlVAHRqdjkjSdmn07Hg0HMmpIG0o+Eyk8JQ c=; X-CSE-ConnectionGUID: TybRyqt+S0+A3psfqd9kqw== X-CSE-MsgGUID: ZCSBsvNZSNeDFHlSEpsSrQ== X-IronPort-AV: E=Sophos;i="6.12,245,1728943200"; d="scan'208";a="28242729" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 18 Dec 2024 21:03:42 +0100 Received: from localhost.localdomain (88-183-119-157.subs.proxad.net [88.183.119.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtps.eurecom.fr (Postfix) with ESMTPSA id 40B8121DE; Wed, 18 Dec 2024 21:03:42 +0100 (CET) From: Ariel Otilibili To: dev@dpdk.org Cc: Ariel Otilibili , Thomas Monjalon , David Marchand , stable@dpdk.org, Vamsi Attunuru , Apeksha Gupta , Sachin Saxena Subject: [PATCH 1/1] net/{octeon_ep,enetfec}: remove unused value Date: Wed, 18 Dec 2024 21:00:09 +0100 Message-ID: <20241218200306.546714-2-otilibil@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241218200306.546714-1-otilibil@eurecom.fr> References: <20241218200306.546714-1-otilibil@eurecom.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Coverity issue: 385414, 374016 Fixes: c836a7ba33e ("net/octeon_ep: support mailbox between VF and PF") Fixes: bb5b5bf1e5c ("net/enetfec: support queue configuration") Signed-off-by: Ariel Otilibili -- Cc: stable@dpdk.org Cc: Vamsi Attunuru Cc: Apeksha Gupta Cc: Sachin Saxena --- drivers/net/enetfec/enet_ethdev.c | 1 - drivers/net/octeon_ep/otx_ep_mbox.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/drivers/net/enetfec/enet_ethdev.c b/drivers/net/enetfec/enet_ethdev.c index 91c0f60490..0d27b63953 100644 --- a/drivers/net/enetfec/enet_ethdev.c +++ b/drivers/net/enetfec/enet_ethdev.c @@ -415,7 +415,6 @@ enetfec_tx_queue_setup(struct rte_eth_dev *dev, offset_des_active_txq[queue_idx]; bd_base = (struct bufdesc *)(((uintptr_t)bd_base) + size); txq->bd.last = (struct bufdesc *)(((uintptr_t)bd_base) - dsize); - bdp = txq->bd.base; bdp = txq->bd.cur; for (i = 0; i < txq->bd.ring_size; i++) { diff --git a/drivers/net/octeon_ep/otx_ep_mbox.c b/drivers/net/octeon_ep/otx_ep_mbox.c index 64a51c1fd0..1d7e08d2cc 100644 --- a/drivers/net/octeon_ep/otx_ep_mbox.c +++ b/drivers/net/octeon_ep/otx_ep_mbox.c @@ -256,9 +256,6 @@ int otx_ep_mbox_get_link_info(struct rte_eth_dev *eth_dev, } link->link_status = RTE_ETH_LINK_UP; link->link_duplex = RTE_ETH_LINK_FULL_DUPLEX; - link->link_autoneg = (link_info.autoneg == - OTX_EP_LINK_AUTONEG) ? RTE_ETH_LINK_AUTONEG : RTE_ETH_LINK_FIXED; - link->link_autoneg = link_info.autoneg; link->link_speed = link_info.speed; return 0; -- 2.47.1