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 8A59342CDA; Fri, 16 Jun 2023 14:41:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A8AA4161A; Fri, 16 Jun 2023 14:41:15 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2044.outbound.protection.outlook.com [40.107.92.44]) by mails.dpdk.org (Postfix) with ESMTP id 58CEE40DDB for ; Fri, 16 Jun 2023 14:41:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=atmSYn14rLFHGREEiQtYvnUbZcqmbC+smy5siDjjxVBxN7ZP8lL6xY4dt1wfiq+7Rf5/cjUjHsNyXcxXO6Pok8HIqEG3cuG7CiuH5UhGG352ZXX5MbcbL9VEqLWVw+g8D+UkulOPebEiyaXkxWUyT4psandy/8ZBJVDXQG9wgT6a/gCaLRQa0cFsQi1R/4m5p6SsKjgo+OQoWYDr4dblWnTUGU6YFr/7yh/KW7VJ5gWtJHxuxbura9fAr8dcx7TSmdfMCwZgJsGj1+nrlWBMXmV66+fy9AwVOu0VSSpE65vJ0Zbtl81G1pdzgoJGmqELOidDntQlF0SdtRFRHUJDXQ== 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=Q2oxFh5AcYFJV/8Xd1KHaTMCfq3Xsw4V1R+uY1NPIFE=; b=D2Mv+bn57c6IVJIg7V6CUU3xCvQVci9Zmhco4gDHfLzovmR0KEXskQvwZJ9ExuZ/tMB/ASLMl4Op89uYtNEC8yXqm6hUNhG8SspmhD+fIcr8phZAqNdyXFBLEaUzT0e5DjntX9NTSQH1JTWegb/poplBON7yFtLP2LzTzeUyKkoA7px9DXRnbllFGWoSQn7d7cPXr9g64IK24kBAjhZP90Y7BpCwJQ9t0C1EBIxM1uR7J6Pj/foGeY0c/Lcu3f3LZSTlk/8mKh4JW5ZiTFYBkEFZi61CZdQnmPWvB7Y/oRtPUAD2fKpwQ6KLJf/1gT9pKMzGJMHs1f0ycQbpzVL0Sg== 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=Q2oxFh5AcYFJV/8Xd1KHaTMCfq3Xsw4V1R+uY1NPIFE=; b=EN/XQQD+rv8ImIWc17LQ9SJHglOzt+893vEENMJxl/OohnqBGjn5gnX1l1I9Jfat2CuaTl1BlvR1oAOmt6bPSXxphDMIrOkVTK4VCCzFdNQnDn/t+Sdya88p9QgUlvk9Dv/zzo47Pd/Lg/z1t6DZtgJLRXCpPp7c8LJC41Qb538= Received: from BN0PR04CA0065.namprd04.prod.outlook.com (2603:10b6:408:ea::10) by SN7PR12MB6692.namprd12.prod.outlook.com (2603:10b6:806:270::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Fri, 16 Jun 2023 12:41:10 +0000 Received: from BN8NAM11FT094.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ea:cafe::38) by BN0PR04CA0065.outlook.office365.com (2603:10b6:408:ea::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29 via Frontend Transport; Fri, 16 Jun 2023 12:41: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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN8NAM11FT094.mail.protection.outlook.com (10.13.176.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6500.29 via Frontend Transport; Fri, 16 Jun 2023 12:41:10 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 16 Jun 2023 07:41:09 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.6; Fri, 16 Jun 2023 05:41: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; Fri, 16 Jun 2023 07:41:02 -0500 From: Abhijit Gangurde To: , CC: , , , Abhijit Gangurde , Nipun Gupta Subject: [PATCH v2 1/3] bus/cdx: remove ineffective code statement Date: Fri, 16 Jun 2023 18:09:08 +0530 Message-ID: <20230616123910.1110724-2-abhijit.gangurde@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230616123910.1110724-1-abhijit.gangurde@amd.com> References: <20230616123910.1110724-1-abhijit.gangurde@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT094:EE_|SN7PR12MB6692:EE_ X-MS-Office365-Filtering-Correlation-Id: 42323e0a-1f88-4c9a-fbe2-08db6e66f675 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P5cn32FiZ5vktnvlegTI9Yarbczxqd4wmovrt8ngWUgpxJGMwN57DwabZ4gcbC5zA2M8aslDvMw/uTVbATqhCcDQkRJPK6D4N+WIoC4+7X5qknkC6gPx8Zryna7/piwdwpjkGEmMDWM1qel5r/RgGc0nW8Cgve6Wd8EBFpACc10fq8ewkMxfxS1QGgvjvJejFtCxlTFqQkXLAdGMfaHnVN8KabIS2vRRN5jqBdSLpP99w0gTroG6UPZ63/P3jqD54z9UmgPMPtV4JHdcsjMx9tt1wz/D3i1or17CfcJWDBTwGYSmj44WUEwqA5sEQDFHJt9iqcZdIi2/pvdE9VrHRMnVai65p1kqa8NuE4FF+oyqSOUV2mhC5FqV0Ghyhx45ADsZT44LRu5ONscYCRDHJ4U5oqvgbCSPm7/WcNGgpwZ/j9dExggIns3Mp+yLcKwoQ/EEF3RzvDfA9z31EwoBr2yFcek9oBlPi5jbIQK66CADibqgJEuSY6xhBOBw1jJGj0/qoMDpYKqcOoM+pPol6hucJC6Ta3xB3gUKpNN/DhlYr4P+I0KGn46I5NSye0X9oqLJmhHloq2ITI57dt/xXxqbb/nlVYcKZVHlkxHE/pBVZJA/5O+XIu6rp0sru8jIjBFrX7mQ+1iudKC4LsOjttPCrQdicMdpCu9PGOiMarqtektTC/fBWg/4t+r8g0z01lEDuPxJRmLVDs9KUJgrVGb0xL9r8kiTgyTKbsaS8MKB0Twt3OT/RvuB2yfYaWROkouCriOt/KS87z27TSAQ7w== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(136003)(376002)(396003)(346002)(451199021)(40470700004)(46966006)(36840700001)(336012)(426003)(83380400001)(47076005)(40460700003)(2906002)(4744005)(2616005)(356005)(82740400003)(81166007)(36860700001)(36756003)(40480700001)(5660300002)(86362001)(82310400005)(41300700001)(70206006)(70586007)(316002)(4326008)(6636002)(8676002)(8936002)(478600001)(186003)(44832011)(26005)(1076003)(54906003)(110136005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2023 12:41:10.3235 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42323e0a-1f88-4c9a-fbe2-08db6e66f675 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT094.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6692 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 Remove ineffective code statement ret = 0 since it is overwritten in a loop. Coverity issue: 385379 Fixes: 45ef232af515 ("bus/cdx: introduce AMD CDX bus") Signed-off-by: Abhijit Gangurde Acked-by: Nipun Gupta --- v2: - Updated commit message 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