Commit ab9837b5 authored by Chen Zhou's avatar Chen Zhou Committed by Jakub Kicinski
Browse files

amd-xgbe: remove unnecessary conversion to bool



The conversion to bool is not needed, remove it.

Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 0eac8ce9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)