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 1889945F06 for ; Sat, 21 Dec 2024 14:28:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 10A5C40144; Sat, 21 Dec 2024 14:28:57 +0100 (CET) Received: from smtp.eurecom.fr (smtp.eurecom.fr [193.55.113.210]) by mails.dpdk.org (Postfix) with ESMTP id AD35840144; Sat, 21 Dec 2024 14:28:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734787735; x=1766323735; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p8uP2cuvIM3MKDZavwjIqJAbdSHMVJof1L1GDZboWDs=; b=I80enNTcnV1jzb/OARa9KSgx2N7h2HM7psaafpfkzRzAoLuJcXMboqo/ BYMMPHRW72t6SDtvHetjrI+BqVRnHpR2+WTBObqH9UbGXQhZTITBJEl/I EdspFjkh3NZDdNIzSrMVcdqoZwAkDxdheudmxqFIX7l7Ju4YYiISImZ7X 0=; X-CSE-ConnectionGUID: oE2htXZeSMKR3KlGxBrDyA== X-CSE-MsgGUID: VVlQZvT+QBuVuidkZu9Jhw== X-IronPort-AV: E=Sophos;i="6.12,253,1728943200"; d="scan'208";a="28286357" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 21 Dec 2024 14:28:55 +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 614172559; Sat, 21 Dec 2024 14:28:55 +0100 (CET) From: Ariel Otilibili To: dev@dpdk.org Cc: Ariel Otilibili , stable@dpdk.org, Andrew Rybchenko Subject: [PATCH 1/1] common/sfc_efx/base: remove unreachable code Date: Sat, 21 Dec 2024 14:27:07 +0100 Message-ID: <20241221132830.1100648-2-otilibil@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241221132830.1100648-1-otilibil@eurecom.fr> References: <20241221132830.1100648-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 The default switch case ends with a goto; meaning these instructions are never reached. Coverity issue: 121742 Fixes: 19b64c6ac3 ("net/sfc/base: import libefx base") Signed-off-by: Ariel Otilibili -- Cc: stable@dpdk.org Cc: Andrew Rybchenko --- drivers/common/sfc_efx/base/efx_mon.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/common/sfc_efx/base/efx_mon.c b/drivers/common/sfc_efx/base/efx_mon.c index ee449ef5eb..5706171abd 100644 --- a/drivers/common/sfc_efx/base/efx_mon.c +++ b/drivers/common/sfc_efx/base/efx_mon.c @@ -80,9 +80,6 @@ efx_mon_init( goto fail2; } - emp->em_emop = emop; - return (0); - fail2: EFSYS_PROBE(fail2); -- 2.47.1