mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
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>
This commit is contained in:
parent
0eac8ce95b
commit
ab9837b5ed
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue