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 6BE7142CB7; Wed, 14 Jun 2023 12:22:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3ECE640E0F; Wed, 14 Jun 2023 12:22:14 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2048.outbound.protection.outlook.com [40.107.244.48]) by mails.dpdk.org (Postfix) with ESMTP id 271D640DDB for ; Wed, 14 Jun 2023 12:22:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hx0kNH4iigtK5Y8FJnSTbEcfP78My4dk7TdyYccbKbOsa7FtLXQOX51wqcNlaUyiZZGc1imudo4pPBjjAwQaTLeaKyPMYX9w5wArFbbbinnhdRSo8im0tKNA0qfN+YnFBoZl0DoLvlJQxaVraamnVsxax1R0mpXJn2TkftlOFavC/PVFlAj6csiP4yznTELn9G4TxEZ6DOMa/hC89jhZO4fqrSvdu+NAK/bjX9Pfwlo16D9yyNuZ7WPF+wBsnuOc8hJaRtBvsyR0mj2iqUg94OMtlTrCjE1sza8dof9nYEESKp6Lo0NSNHwk/0sxgVUT+pWcjCR/oq7tFuosgGMsVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=cVea5uxmvfrGQcyB8G8qde2QpKt48pCQ9+g7yMnWU2Q=; b=U/hKt7TvNNrDeYxOMPHGlE3fiMorW33OY4aYI3qI5KfWN0WMDQGA3G1CGXYxSluLB/mwyU3Vw+rK4EPUesTjUHLQ/2Qis7woBetfnA38IlKzFEGPGX7P+5mrP3siF1iErVjfXyFvJj0YKCFJJNRT0UJ4W7ybxAgIiKemWk/qoyQh0oOnzs0wJE1mMghMpDQPSpzjcrZae7KWpSWe5+CgqMNpvYBn/qI5DFAKRf9JsZn+siPfIj1s04vtoGekt4IGSNW1UzYXXiSQjWqvVrHsrpYGt2weFZD9s4P8sjeWqTEIQTkUN3J5EPRCk4kCDYXg7asYjOWAverx2nV4YD5iNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cVea5uxmvfrGQcyB8G8qde2QpKt48pCQ9+g7yMnWU2Q=; b=QIxmNf+roaAIP9AF8/dd1yYYgt0R5Gd+rtiSi0NFkTWDfO/2X2qTtgVfDJy2mJ0V5PAj4TCPe2dOfxjG16lIXPbIFkPdorB4G7FvOiWnt0CTzcndB2Ow0mwe9apJxm8+W+YCY6/i4tdf8w6smOaiPVBCtLf//cxnijDwqUtRizg= Received: from CY5PR15CA0217.namprd15.prod.outlook.com (2603:10b6:930:88::6) by DM4PR12MB6279.namprd12.prod.outlook.com (2603:10b6:8:a3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Wed, 14 Jun 2023 10:22:11 +0000 Received: from CY4PEPF0000EE39.namprd03.prod.outlook.com (2603:10b6:930:88:cafe::7f) by CY5PR15CA0217.outlook.office365.com (2603:10b6:930:88::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.37 via Frontend Transport; Wed, 14 Jun 2023 10:22:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000EE39.mail.protection.outlook.com (10.167.242.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6500.25 via Frontend Transport; Wed, 14 Jun 2023 10:22:10 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 14 Jun 2023 05:22:10 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 14 Jun 2023 03:22:09 -0700 Received: from xhdipdslab59.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Wed, 14 Jun 2023 05:22:08 -0500 From: Abhijit Gangurde To: , CC: , , , Abhijit Gangurde Subject: [PATCH] bus/cdx: Remove ineffective code statement Date: Wed, 14 Jun 2023 15:52:01 +0530 Message-ID: <20230614102201.224495-1-abhijit.gangurde@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE39:EE_|DM4PR12MB6279:EE_ X-MS-Office365-Filtering-Correlation-Id: 432b6fdb-f8fe-4856-63ce-08db6cc136e6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jPTXGLfGKI0kEqO4sL6iUNEgnY7Jqt4JMcVtjkaS6DTYsPmupmDPdWi954EI0JIUgTQpxHOqbxq8VVXfkpKUYqrHBonx5F3sz7Bak1IKB2++XNxwYtH/tzEObfMkRWFUveWIQ9RZI9M+bxapeBEOCq2tdUpaIL8J6aJnRwYhHZrCVTVnv63b25f6LzgEbCgOoc9VwPJAGj+AoN2u+yuLvZLmP+Ga1aVmQ98ipdT1UCazUmxQePWcsYDk7t3O0yJrYOChTsZo7LBj3m+QOVAR+LMbLhUYo3kbI1kjBb/blTwM/4CYTks2fdWFxCOW745DxsxREJDaLy9Q8iHNUjTcy31OhrLP4rjy0EPTiUKLZaqPdgiQIVJiGLK5jncXTRo4/iT1ATDazgyWoBMLcm5fCebK7LanyMV1LAdt7plL7CF0/n8976mwynU4ZvEIwxoDx8Z0gByB9s4JTSsyP8hEJrMPIlX1UNMzz7ZYavALeIbxTXRgOnfmk523i8dMYjG8no2jm50XaM9ZEwpZkIMKQeM5VFRrfaWeqCnv6fRyfzACAK9iIXujAIe1KNp3OKhL0KvWl5XQxRmoP20L+1U6pyauPBxv3BLCS7ddSzE8btd3gAxO2eghqTv+ryZBKw8brKajjpDl1t53pvLxm9jJvuU8prdMp2pYlRIyf/IfcBkGv2rGDEDKuzxVrJ3bQHzqz7CqP3+j1SMBMCYfIEGct7VRY1ScH+xJuLV0DFXX2MSrVRFHw1EvIB6QfCC7KDhk7hy6uYEbk9CDpLI/U76MkA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(136003)(346002)(396003)(376002)(39860400002)(451199021)(36840700001)(46966006)(40470700004)(86362001)(82310400005)(40460700003)(8676002)(316002)(41300700001)(82740400003)(5660300002)(26005)(40480700001)(83380400001)(81166007)(1076003)(36860700001)(356005)(6666004)(44832011)(8936002)(336012)(36756003)(70586007)(426003)(70206006)(4326008)(47076005)(478600001)(6636002)(186003)(54906003)(4744005)(2906002)(2616005)(110136005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2023 10:22:10.7519 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 432b6fdb-f8fe-4856-63ce-08db6cc136e6 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EE39.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6279 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 ret = 0 statement is ineffective since it is overwritten in a loop. Coverity issue: 385379 Fixes: 45ef232af515 ("bus/cdx: introduce AMD CDX bus") Signed-off-by: Abhijit Gangurde --- drivers/bus/cdx/cdx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/bus/cdx/cdx.c b/drivers/bus/cdx/cdx.c index 28bbf92ed5..9130c30515 100644 --- a/drivers/bus/cdx/cdx.c +++ b/drivers/bus/cdx/cdx.c @@ -452,7 +452,6 @@ cdx_probe(void) dev->name); rte_errno = errno; failed++; - ret = 0; } } -- 2.25.1