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

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
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment