diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-05-05 15:45:56 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-05 11:39:42 -0700 |
commit | ec161116ad554fec2e87215da93db48b5767f323 (patch) | |
tree | 7bcf3bbe815673d920b3bcd5e8110564dc5a430a /drivers/net/ethernet/agere/et131x.c | |
parent | e8cc063d83106bc6855c07db0001e8d01cbd8b3e (diff) | |
download | linux-ec161116ad554fec2e87215da93db48b5767f323.tar.gz linux-ec161116ad554fec2e87215da93db48b5767f323.tar.bz2 linux-ec161116ad554fec2e87215da93db48b5767f323.zip |
net: agere: use true,false for bool variable
Fix the following coccicheck warning:
drivers/net/ethernet/agere/et131x.c:717:3-22: WARNING: Assignment of
0/1 to bool variable
drivers/net/ethernet/agere/et131x.c:721:1-20: WARNING: Assignment of
0/1 to bool variable
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Acked-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/agere/et131x.c')
-rw-r--r-- | drivers/net/ethernet/agere/et131x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/agere/et131x.c b/drivers/net/ethernet/agere/et131x.c index 1b19385ad8a9..865892c1f23f 100644 --- a/drivers/net/ethernet/agere/et131x.c +++ b/drivers/net/ethernet/agere/et131x.c @@ -714,11 +714,11 @@ static int et131x_init_eeprom(struct et131x_adapter *adapter) * gather additional information that normally would * come from the eeprom, like MAC Address */ - adapter->has_eeprom = 0; + adapter->has_eeprom = false; return -EIO; } } - adapter->has_eeprom = 1; + adapter->has_eeprom = true; /* Read the EEPROM for information regarding LED behavior. Refer to * et131x_xcvr_init() for its use. |