summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/xgbe
diff options
context:
space:
mode:
authorChen Zhou <chenzhou10@huawei.com>2020-01-13 21:15:16 +0800
committerJakub Kicinski <kuba@kernel.org>2020-01-13 18:22:17 -0800
commitab9837b5ed51f128f898a93d873ba7198abc1140 (patch)
tree93f432d831d489deebb98879e1dbbfcde5bfe6b0 /drivers/net/ethernet/amd/xgbe
parent0eac8ce95bb386838121189b2aa2216cd070f143 (diff)
downloadlinux-ab9837b5ed51f128f898a93d873ba7198abc1140.tar.bz2
amd-xgbe: remove unnecessary conversion to bool
The conversion to bool is not needed, remove it. Signed-off-by: Chen Zhou <chenzhou10@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe')
-rw-r--r--drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c b/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
index 128cd648ba99..46c3c1ca38d6 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
@@ -1227,7 +1227,7 @@ static bool xgbe_phy_sfp_verify_eeprom(u8 cc_in, u8 *buf, unsigned int len)
for (cc = 0; len; buf++, len--)
cc += *buf;
- return (cc == cc_in) ? true : false;
+ return cc == cc_in;
}
static int xgbe_phy_sfp_read_eeprom(struct xgbe_prv_data *pdata)