提交 ab9837b5 编写于 作者: C Chen Zhou 提交者: Jakub Kicinski

amd-xgbe: remove unnecessary conversion to bool

The conversion to bool is not needed, remove it.
Signed-off-by: NChen Zhou <chenzhou10@huawei.com>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册