Skip to content

Commit

Permalink
net: agere: use true,false for bool variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Yan authored and David S. Miller committed May 5, 2020
1 parent e8cc063 commit ec16111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/agere/et131x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ec16111

Please sign in to comment.