Skip to content

Commit ab9837b

Browse files
Chen Zhoukuba-moo
authored andcommitted
amd-xgbe: remove unnecessary conversion to bool
The conversion to bool is not needed, remove it. Signed-off-by: Chen Zhou <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0eac8ce commit ab9837b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ static bool xgbe_phy_sfp_verify_eeprom(u8 cc_in, u8 *buf, unsigned int len)
12271227
for (cc = 0; len; buf++, len--)
12281228
cc += *buf;
12291229

1230-
return (cc == cc_in) ? true : false;
1230+
return cc == cc_in;
12311231
}
12321232

12331233
static int xgbe_phy_sfp_read_eeprom(struct xgbe_prv_data *pdata)

0 commit comments

Comments
 (0)