]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
amd-xgbe: remove unnecessary conversion to bool
authorChen Zhou <chenzhou10@huawei.com>
Mon, 13 Jan 2020 13:15:16 +0000 (21:15 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2020 02:22:17 +0000 (18:22 -0800)
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>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c

index 128cd648ba99c0fbb753256f49781e2437ccc3d8..46c3c1ca38d60c06ea4c90ee26fb709971c71d0d 100644 (file)
@@ -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)