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 53C09460D6; Tue, 21 Jan 2025 18:10:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3153640B98; Tue, 21 Jan 2025 18:08:56 +0100 (CET) Received: from egress-ip11a.ess.de.barracuda.com (egress-ip11a.ess.de.barracuda.com [18.184.203.234]) by mails.dpdk.org (Postfix) with ESMTP id 7E11340674 for ; Tue, 21 Jan 2025 18:08:39 +0100 (CET) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02lp2041.outbound.protection.outlook.com [104.47.11.41]) by mx-outbound11-0.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 21 Jan 2025 17:08:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wjpHOuULmSlZ/U/7le8meBllJkp2EGJE0IYkCvC8vUOKaNHdJOJKafWxnCXkfPENsUByMujWhe8noZgebEOITOusMm9RtuX8NENpxeXibQ9Nzt6Gw2DDZ4X+KqLiEZi3pg9a0RBdsUyJNBOTBz78FIxtkVbqPgV1jxW0XopUpQlEUdnaPCOptebTy7kyOgYwCHrYikq5NNAG7Mza1+8MCIss8nmk2knbKwl41ZiQgaGHD6DG59IX/Mm2IQh/yHY6VPS/vyFAgPj+DEVLndBK4wQIzBDUPiit3m4qhbQrRILzEIkgZpcFILFEEaqxzuFCLFXzhiKrXom2hpbgsJNU9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lw1x1QL10D/Unu2Xl9LVPgDhZZkl4660vIvPHbgNPmI=; b=BtNUWUq9ZEZ19rcRP6DfjE1SDJ4ErlEHQmyU83YBUt66b2KP2e4WemzX8V5Jnx56JdRsO0m7kA56UCDguUdjMuZ7sgi9yBrABJbR8AJgF0sStf8IBJYmdsrIwnowsnNLlyirG/KqIN+Wk7v4YA8ubnHEeFiDYyCCg9LxpwIFKEusaYCwpDQT6dxjNHHvx2RCdMhVOhYVqRL/0IGfx5cYkprTGeueXc4S6IcW+oLO1fLpvINqlrg6dR5xK4mNZNH13bfFdTDREhzchlLfLfhnm9c6m/K3duzuxw77zd/Jah6R32rW6YQUJXN/dJ3bwn8JTth/8JM79/XwZRarDS9jWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 178.72.21.4) smtp.rcpttodomain=dpdk.org smtp.mailfrom=napatech.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=napatech.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=napatech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lw1x1QL10D/Unu2Xl9LVPgDhZZkl4660vIvPHbgNPmI=; b=diV3D0N+RE6OLFdR02aDdbLNvT9tv8cC76Grn0Rdv8wUcXPUzzKKTuuZVAg6ycsOcjJmAf3XCpELy+CQOqmH6Ih5XT7DDd2mrUVFi3IMnrgIzr2/4p2UD7ZsMtzZ0RBleMHk438poM4VZXhYpp6YGw63/vHO5C9aRuBCtvrRNkg= Received: from AS4P251CA0028.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d3::17) by GVXP190MB1942.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:68::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.16; Tue, 21 Jan 2025 17:08:35 +0000 Received: from AM2PEPF0001C70A.eurprd05.prod.outlook.com (2603:10a6:20b:5d3:cafe::3d) by AS4P251CA0028.outlook.office365.com (2603:10a6:20b:5d3::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.21 via Frontend Transport; Tue, 21 Jan 2025 17:08:35 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 178.72.21.4) smtp.mailfrom=napatech.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=napatech.com; Received-SPF: Fail (protection.outlook.com: domain of napatech.com does not designate 178.72.21.4 as permitted sender) receiver=protection.outlook.com; client-ip=178.72.21.4; helo=localhost.localdomain; Received: from localhost.localdomain (178.72.21.4) by AM2PEPF0001C70A.mail.protection.outlook.com (10.167.16.198) with Microsoft SMTP Server id 15.20.8377.8 via Frontend Transport; Tue, 21 Jan 2025 17:08:35 +0000 From: Serhii Iliushyk To: dev@dpdk.org Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com, stephen@networkplumber.org, Danylo Vodopianov Subject: [PATCH v1 18/31] net/ntnic: remove dead code Date: Tue, 21 Jan 2025 18:07:56 +0100 Message-ID: <20250121170814.3252171-19-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20250121170814.3252171-1-sil-plv@napatech.com> References: <20250121170814.3252171-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C70A:EE_|GVXP190MB1942:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: ba285258-3982-4ad5-ceb3-08dd3a3e3db3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?u2WXz4/ZIiKtB5sb9s7QNTspz6M4UD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NaWf366gQ+1e1GVX2eNCBHhL2tkxolAmQAnmTYBKsPKuBJf7ta7sg?= =?us-ascii?Q?ztj9xHjotJzKMozy5aj1FD7VJ4lc/w4cLCyHjUc0W/dPAbATQsSpxjCuXPvP?= =?us-ascii?Q?oHip1WahIyDmQ8hs6ckzJUM7+/4DwP6QraPd15r+JyAD7afEhyD7fR2wqQdv?= =?us-ascii?Q?KhlQYl01b9K+x/1eEI01TtZVwey/DU5229ult77UsJHh+W5Py2+ySSxuE6z2?= =?us-ascii?Q?gKUFiFHlvhllZEuhQAXapHIVjGWgOcVulBREoXJfXJvdxWpRKQP+OXtA042v?= =?us-ascii?Q?s3OX4l86WLzm5F1Ut9m07oKzgf0Q+7HYPzX+8C7LJB0LVKaKhJ3pHsG5SGOc?= =?us-ascii?Q?D/C3TjYX1X2LgIxcWExHgijV/vpy8Z+csveNROyPuMA0MF8poYID44K2Qn6S?= =?us-ascii?Q?Yd9IAem0RYUSc/m7Popy7AmN5B0aJlPnMB2pM1iIROlY2EfL0xKUmW/XDGv8?= =?us-ascii?Q?hq/qsM6X3cTwPULBG+xfZenIdjnMTLaRwTBfISwDJIrwQ4fGrOdAP7f95sNz?= =?us-ascii?Q?Q3EY/7J5t2kdxiEdQf4L8kyY8KBj9tGDipIz4p3sSUdR7UNqAhSrnA=3D=3D?= X-Forefront-Antispam-Report: CIP:178.72.21.4; CTRY:DK; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:localhost.localdomain; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(1800799024)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: NS7njbV/JxyrF3lwHJYl9gEa/LIaJBJUOIP9AlGcXhAKBYMUdoUD5nfA0ID44Vv5ocS5AerKmtjUJtp+G4XLm/FtaN/fil2QFqRC5r6dNe21CotDTIzphvW/OvcGxj1Qa9LhONoaeSgrrMz+JHbXGz+QA4QnYV3lMwkxe+2HQx3bkqms2Gv2a3MaGFRGaKSy4MX+NAAhfTJd7VzWzK+N5Ks0MuC29m0ayujKitfBtwmB+2w32cvFiLQRTL1og5s4yj/qLrJX4ltXnswXmrnhxw+qO8KCB9ActGCGA07hsBfHnWTCjv4E0jlmdFOuyI0jyhne9K2EFymM07EeTXfJRE2iOnJ1rS/E49p8y8JJZvLZf8+6zZugtsJ95MADGyYLs4OcTTTxT2HmK0majRptdEzPeqGBmpH5dxk/lslAHodPCEwPoiMUHgaYk/2/HgvGrVgJdhFTzF8ATgSBzCRWT+IG0wwaeRGy5PhvotW7XrEOlH3ClwPaW8wwriVUE25zN+KdE5p1hgguJhgji607eIIDNINcX7Vl8WTBcaJNJTDw3sFgod2CIN1IM9GV+eHQNPzABnf4glCIxjlkr/x2SSP2A7F3e56ZpWzAoHhIDYWPCejB1Fr1vkoQ0TWsWZzXnA2WyFZtkdpTeO/Rbd39Xw== X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2025 17:08:35.2805 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ba285258-3982-4ad5-ceb3-08dd3a3e3db3 X-MS-Exchange-CrossTenant-Id: c4540d0b-728a-4233-9da5-9ea30c7ec3ed X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c4540d0b-728a-4233-9da5-9ea30c7ec3ed; Ip=[178.72.21.4]; Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: AM2PEPF0001C70A.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXP190MB1942 X-BESS-ID: 1737479318-302816-13348-7963-1 X-BESS-VER: 2019.1_20250117.1903 X-BESS-Apparent-Source-IP: 104.47.11.41 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVpYWJkBGBlDM3DA5KcnM0DQx2d DU2MA80czc2CzFLCXN1CzV2MTcPFmpNhYAexV/yEAAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.261957 [from cloudscan10-25.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Danylo Vodopianov Dead code path in the condition irq_vector >= 0 because the condition irq_vector < 0 is already established Coverity issue: 446745 Fixes: 01e34ed9c756 ("net/ntnic: add availability monitor management") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c b/drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c index a2c9ef27f0..e1eccb647c 100644 --- a/drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c +++ b/drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c @@ -415,7 +415,7 @@ static struct nthw_virt_queue *nthw_setup_rx_virt_queue(nthw_dbs_t *p_nthw_dbs, if (irq_vector < 0) { if (set_rx_am_data(p_nthw_dbs, index, (uint64_t)avail_struct_phys_addr, RX_AM_DISABLE, host_id, 0, - irq_vector >= 0 ? 1 : 0) != 0) { + 0) != 0) { return NULL; } } -- 2.45.0