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 9FEC444153; Tue, 4 Jun 2024 14:14:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 910B4436CE; Tue, 4 Jun 2024 14:13:21 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2042.outbound.protection.outlook.com [40.107.220.42]) by mails.dpdk.org (Postfix) with ESMTP id A1E99436FA for ; Tue, 4 Jun 2024 14:13:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k7ENc3T6qIsGE7zIvvy4iLapJWTA0hbOY7W2utgvLde8IVxqyAHpqf6rvN/dOqViTMrG1GvgVLQhtbq7Yd6Ej+tgbD36nnRQANsNf88YUwjk6oh9cjFrycaJ/5e5qA92I32H4j+vsQIvuldcAnI3l0p6/XRCygszgaZO/jUul89TazUnWAgxIunospY9bWejStUHk6kEtrR9Iapb1Wfm6c3l3kllRgVOuUdhgKROTqGOKo2PQoopqKllVpVKkVRfcoGklmuaFH+Z6NOabUKgftYuosCi2JnXKTgPiqUMNp9EtdXMS2wEdb6+XuierGpsgW1l6C9ziMJsIeHR2myt6g== 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=QXQJZLFalybBhORZNUetALMctoZkfGJuABp6GTXhEvM=; b=d5xMk7r5cD+Yw6pGwim8esLrKiHSeuUb9fRhIhA2t9pvNZu/7RTDiVX7DK0tjfv4Q3Xi4FoPvWquZEg1ghPbOuYZwsAEeEDhejrwm+XKodjVGkC7W3+Rg+EL/KkKYzZPFgehro5sE86e1tT2TqSvFqLHeqRHztSaJTJPRHcMa6z+23ktzqXkvvFHLHBgmxOWTWPWULtoSUxkS7PtSkwNhucfKM3R2GfzyV9+ooKashzp4dxvUYXkOB6+ihs5H/8jK/1KbIor4VjVrjpJvIXGc4wllRydkjlBklVIMSyGtFNhblZHzL/zswmTY0AAN0X7BN8MCARq7qZq/q3GouGNfA== 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 (0) 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=QXQJZLFalybBhORZNUetALMctoZkfGJuABp6GTXhEvM=; b=BxbPB5tp+PmwCTB4PYI+phzd7pfVAO0y/Ibfkgx9zlQKx7Xw8sJsZGdOQO7OnaREvPUfaVD4UoeYvBPW2Wv5vF4iJyP/cwk3Ez/Cze1Kx2B0UzBUAvztEmYsqpSyBUQom4O+ES5PwXVzeX8vxBXqlDzdnrGle2ntc9Y3IX7bS4E= Received: from BN9PR03CA0166.namprd03.prod.outlook.com (2603:10b6:408:f4::21) by PH0PR12MB7840.namprd12.prod.outlook.com (2603:10b6:510:28a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Tue, 4 Jun 2024 12:13:16 +0000 Received: from BN3PEPF0000B374.namprd21.prod.outlook.com (2603:10b6:408:f4:cafe::df) by BN9PR03CA0166.outlook.office365.com (2603:10b6:408:f4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.30 via Frontend Transport; Tue, 4 Jun 2024 12:13:16 +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 BN3PEPF0000B374.mail.protection.outlook.com (10.167.243.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.0 via Frontend Transport; Tue, 4 Jun 2024 12:13:16 +0000 Received: from cae-Lilac-RMB.amd.com (10.180.168.240) 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.35; Tue, 4 Jun 2024 07:13:14 -0500 From: Venkat Kumar Ande To: CC: , Venkat Kumar Ande , Selwin Sebastian Subject: [PATCH v3 17/25] net/axgbe: remove unnecessary conversion to bool Date: Tue, 4 Jun 2024 17:41:49 +0530 Message-ID: <20240604121157.3052-17-venkatkumar.ande@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240604121157.3052-1-venkatkumar.ande@amd.com> References: <20240507124305.2318-1-VenkatKumar.Ande@amd.com> <20240604121157.3052-1-venkatkumar.ande@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B374:EE_|PH0PR12MB7840:EE_ X-MS-Office365-Filtering-Correlation-Id: 644a86d5-b0b3-4ac2-d2d5-08dc848fb6f2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|1800799015|82310400017|376005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?RHgbhQb1D+dHrEdERTMHPave4iqZNsED5hrWDr9shpi6S5dGfDZurmEgqmAh?= =?us-ascii?Q?Ke5TSjTCANFGR/Gud5ibjkIaOqkoU/xeL3GZtlgHOdIZ21x6RsdJnsj2k2U9?= =?us-ascii?Q?k2xoOIuoDYQ4j2ABQyzi0ds6vvP6fsC4k+0bk1TLCh8ZbL2VpVGfoQwVtA5G?= =?us-ascii?Q?ME9tQpDtaI3QI6gfRoSmuvO1VthGgWF7R17aIA8UZBiiU5uw0U1itJRRVtvd?= =?us-ascii?Q?RirXMb9EMUzcduPuACny/iFj/kO7L8Fj1tFpNu3Nwa6vuzi6bClhHb6Plfnk?= =?us-ascii?Q?+dKGGbfENrXgLnxDjjW7xpH6Qa6MPTn0MLgGmiXM4c7EIAEjV9QpCmvK9QwX?= =?us-ascii?Q?onuVcpZl2scu240QA/54f4ydS5NZjx29vSudF9k6ix1tq7zcXQVlNojcdYd3?= =?us-ascii?Q?sPM1ARwO6HbuErOaF04j5W/9qSiOJiFZHpWsLkzp0+kqwAsOakcqEhK9VQMd?= =?us-ascii?Q?QANCGwA3Lgf8VFcQ6WOiap2PMQZG3IU0kX+H4LqoA0/qci6oipYcV38zmz9u?= =?us-ascii?Q?SIts6aozmU4QBxw4OMD/gXRaXiQExItz5qkkZiFONqJVrjayOimUPIH7wvM3?= =?us-ascii?Q?R+VBIIpUw+bgXsye8f9QetOo8TEqbi+i6DiaolMqJrpvevFyrYjs8Tcd8WgN?= =?us-ascii?Q?LmmS2J8r8++6d4NJke61qM1oMCBcbR2mBtS0YaI7wG2XG++j3BjKvl25jML3?= =?us-ascii?Q?smRKZ7P8TRBV7s5m9wzcSNLUkG6xuvMXBGVAjrwRWRUiE5W1Lx5KNpBQdB/X?= =?us-ascii?Q?6/GgcPcsXkdioMX8yxfaUAbefw/yZuiFqcWLd6xEImK2ZHIBgtmoEtobldAb?= =?us-ascii?Q?MZPzayxUzNIpccX8LzcmfW9w3c+lHO4u0kvs49F7BFD7dfUvaB8Rv2c/VQnP?= =?us-ascii?Q?8WnZZ5iv+yJ9It3UDAbzYiHcWm4VFIyzxlDvrLhfqVDPxwQRhInudcbw3fWY?= =?us-ascii?Q?tzT2+/6qIRRaI9xwlmsbgHGdL2UdzyIKBU0VOLfJir5CGYuK6kpfrntsygfV?= =?us-ascii?Q?24auwey50c7gD+yHszokc800lCsiR4rJGlhbHMBOaXqPqd6Jhb44FOoRnbVs?= =?us-ascii?Q?U7l/EKP8dWDt+lRDx6sEiNWFR83q/cKeBlBLzMTGVLKa7oPbN0FJz3WDwNh6?= =?us-ascii?Q?gZRp7sZCKolPssTi7M+P8CcfoNTNIm3W6uE1Uq2XUAdVT90RcyhKBx0Trag1?= =?us-ascii?Q?ZEYy+QQ7rjFJbLiWNRA5InPmvUpWhS2/PdpXLnD4ZM1iDW1ZwWZf+MdP4Rpd?= =?us-ascii?Q?JWCMsXtoLz97zjnXTMt/X3J/bZR8KNlBwTsDDvl/1uJq6H9quX5e56QEeMoH?= =?us-ascii?Q?w62G0bnn8X9lZXIgGw1SF4/V8/cuTq6IpiEzuevk/ZNus08cDpTSO2IM0/6w?= =?us-ascii?Q?4anNR5Y=3D?= 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:(13230031)(36860700004)(1800799015)(82310400017)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 12:13:16.3855 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 644a86d5-b0b3-4ac2-d2d5-08dc848fb6f2 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: BN3PEPF0000B374.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7840 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: Venkat Kumar Ande The conversion to bool is not needed, remove it. Signed-off-by: Venkat Kumar Ande Acked-by: Selwin Sebastian --- drivers/net/axgbe/axgbe_phy_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/axgbe/axgbe_phy_impl.c b/drivers/net/axgbe/axgbe_phy_impl.c index f583e8ebc9..90e91cc947 100644 --- a/drivers/net/axgbe/axgbe_phy_impl.c +++ b/drivers/net/axgbe/axgbe_phy_impl.c @@ -658,7 +658,7 @@ static bool axgbe_phy_sfp_verify_eeprom(uint8_t cc_in, uint8_t *buf, for (cc = 0; len; buf++, len--) cc += *buf; - return (cc == cc_in) ? true : false; + return cc == cc_in; } static int axgbe_phy_sfp_read_eeprom(struct axgbe_port *pdata) -- 2.34.1