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 DECFC43FC9; Tue, 7 May 2024 14:45:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 340D4433CB; Tue, 7 May 2024 14:44:29 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2063.outbound.protection.outlook.com [40.107.220.63]) by mails.dpdk.org (Postfix) with ESMTP id 34F6D43397 for ; Tue, 7 May 2024 14:44:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jpTlt6jA2TaHOi34aCVM+M/4TytbMnElGzUWRqaSoKuaCZXmtz6nCTnZ+usWjix6xSFJzMcEkj+QvaV77oECXfxOCG69Qsz1qSQ2Dn73BA8GYh/RHQv7orVcxIyQPzlxCKsGeTwEpbMR4HQ7004GwNgpfMrtRiJCwqEG5nbo+0J+aCTJhhTdwvHrfc/NGcJGxgWNACxTQN9uf5l8lIl2HRsnV5voGlSMzpGT1vm/k7XFjFLCkxIjT41Cbg0jpc7H3sJ4Yt2KDZKhoQEEoGAVwJrsXtaYvZijNuNIQ25LiwyMIhHi70Bms2mWqDKdgoIjS5OUa5e24g/mccvhSaHGKg== 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=jaFemUluKUSaNEuGQFnQdhfWVSXr+9lpC3swx+jdFn8=; b=i81V4ysEPPtTlGqaipnKPAR4NLRztmXKcUceJyMd+3xi63LOAUcYmKE037F6uUm5ot2rbJQhkvabTzjI4Bojn8A/TlHewXlTo9kj5p93OCJOdQ9fZLJBHC9XS4WAuxJEGUJfP08MlG5TFv0HT6aEq39GjpAp/C/6YvG/hle7jcXfxp2WQ86CGeeCiEep89NRc5u2nQUE/eSACfIUjiNJiUrlTmn5sDcBTMx0Hen2Z83A21w+BadKgayE+oVXgIAuVW0k+w/b3l8ajmrQQ6OJE1yxy1yRAEmNOBTKOQctMdv94y20BeAHeN3lSdjMPF6sWoiMidRGYkjRsp6dx7X4Ig== 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=jaFemUluKUSaNEuGQFnQdhfWVSXr+9lpC3swx+jdFn8=; b=k5Gz4nuKBqt5+UW0iqVU+8ajWzgeScc0Bf4/u2Rti4Azj6sUfwS/H5AJiE4SE80yT15vLdUaNc7zL2qQzFP0lAA/PeZBa7MeIaVdKHjTuCjLoauEe+kaR2sUkG3Xc20O8IKgog7aZp3Ml2cq/qukah5atI8Is3E+KJIGe6frHrM= Received: from PR2P264CA0009.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::21) by PH7PR12MB6884.namprd12.prod.outlook.com (2603:10b6:510:1ba::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.40; Tue, 7 May 2024 12:44:19 +0000 Received: from SN1PEPF00036F42.namprd05.prod.outlook.com (2603:10a6:101:0:cafe::19) by PR2P264CA0009.outlook.office365.com (2603:10a6:101::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41 via Frontend Transport; Tue, 7 May 2024 12:44:15 +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 SN1PEPF00036F42.mail.protection.outlook.com (10.167.248.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Tue, 7 May 2024 12:44:14 +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, 7 May 2024 07:44:11 -0500 From: Venkat Kumar Ande To: CC: , Venkat Kumar Ande Subject: [PATCH v2 16/25] net/axgbe: remove unnecessary conversion to bool Date: Tue, 7 May 2024 18:12:56 +0530 Message-ID: <20240507124305.2318-16-venkatkumar.ande@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240507124305.2318-1-venkatkumar.ande@amd.com> References: <20240412125013.10498-1-VenkatKumar.Ande@amd.com> <20240507124305.2318-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: SN1PEPF00036F42:EE_|PH7PR12MB6884:EE_ X-MS-Office365-Filtering-Correlation-Id: eb8ad90a-edcf-459b-f7a0-08dc6e936704 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|82310400017|1800799015|376005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?xlGWTU/YE4xgssN/i6FoKH2X1oRyNE7vLeecIAidGG0qmifCZWJyZZY1BsXo?= =?us-ascii?Q?BgPssXKpy0seh4tYWALFPlBLOitKEW/9y2ChzzF8FPTN6xslapDSh2o/B9NC?= =?us-ascii?Q?7npqM1rl2iwd/gWEo25T2gHDuUMy+UMWmr1yE2c+HH7fSgfqYwnuK8cz4RGW?= =?us-ascii?Q?u6M6gnsh+LEw0RDB0PnlSodLt+VvOZVNga6ZHA31hVe3kuBy3ONwYMtt29D/?= =?us-ascii?Q?4mFHwSy3C9n/Ct5UFHxqP/JymPr9PYN3WbRsKM6voeIGlcXZesrFPzerSe36?= =?us-ascii?Q?EqGebYaRos1w3IgDKlN+N3tBozuAwZExOchZZ+zVDTPk5bwlGCE4ZB6UO7c4?= =?us-ascii?Q?p9kh3e+WuPA43S+LmYIWczybN53ulwRdx0C0OPL7qESyPugBtQR2Zsyzl4JQ?= =?us-ascii?Q?GrDbdKckKMWg0fEf7hze6jP7+rEupmVsw04bvwhs21x25g5fzMIxOA8qHhnl?= =?us-ascii?Q?eSeFM2gtTUSyawhHj/ZEwmqLyzCW9F7oj1hqY6/OvF5xno/dC5eiGxJ/XxBz?= =?us-ascii?Q?FKT0xknc2ZgDZrqVEIIv0mWFLapCE/3G27ZMkGSw1rli6No1a/7WyZOx5Dwv?= =?us-ascii?Q?uCjxkwQ9WzFhDeb8kFfTNBVXwNjHLe849LaaDy47ciLIo1jSS2c3MVw4AsJj?= =?us-ascii?Q?KO6lFF6kITGJnjCLjUFLy5s3KUPA4ksMtDZUtqxAWK3yiss8JzOouC3+mOb6?= =?us-ascii?Q?DTR1k7vHJ1GrlLioUJ1Gx9yvYqJ7TI4JvHZTuPNIg81H0wG1br91jaznogJl?= =?us-ascii?Q?m8+0nqW2vPBOYHKcR3pqWuxnuGZvDaOAoTpyeitKeYZlRKgDPtsS4T2JlYEn?= =?us-ascii?Q?ofqf7FI/XIlOaNwp44E6BXdqrtPJOBtzyH8Hk8Bjf+ZiCwd+Ifk0ZZ7632SR?= =?us-ascii?Q?iXsaGmF7R1LWRiFjP0U1WCG3rhvkyZIvbZW5/zUTNUMpPDK00/Y/IiXHvvTi?= =?us-ascii?Q?yDI/sW2wo6j6ZKva7N+lgPRnCxl9Q0ndKXAuHq1sV7rwXAOGCIe8k89DG7U8?= =?us-ascii?Q?K0d65IOIY2o5CKvBwCe2a47BdqOL8jUL3coLEeDzAyDwKtNqYW4cmJn5LDJS?= =?us-ascii?Q?ZlKoESiKj07DmrRTQNP9LoqQhT5YCHl7iwWMvOZZLAylKu7anQjjBt/QIsuM?= =?us-ascii?Q?53aJfSnuZFqlFwwpHbjU8nyjKVZhj0XMoxMUZxJUdIxEgEOYGcv0ofQ22V0p?= =?us-ascii?Q?RovjmCbEs9JNAjUA8cYaBeWA7j/inXC0Ost5oxXbwHdQsNOcOoZLhSQOxGRj?= =?us-ascii?Q?oXQUQTRw8I8t73NTRZqLGrw/0twYY322u0SBSxLb8jjKGxfBFodaDkahGw5P?= =?us-ascii?Q?xJPzrL9xyWWSWJpR2f9X+1wPPG9ZI/7JSIWfP7SxqytwrGOwEeCvpUxCQqtn?= =?us-ascii?Q?8c80jag=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)(82310400017)(1800799015)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2024 12:44:14.6769 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb8ad90a-edcf-459b-f7a0-08dc6e936704 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: SN1PEPF00036F42.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6884 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 The conversion to bool is not needed, remove it. Signed-off-by: Venkat Kumar Ande --- 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 87ef8b6048..2620d44dfb 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