diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-05-05 15:45:46 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-05 11:39:42 -0700 |
commit | e8cc063d83106bc6855c07db0001e8d01cbd8b3e (patch) | |
tree | 163dd11b497382ba155eb08f39393b58a572b0c5 /drivers/net/ethernet/atheros/atl1c | |
parent | 93e6044bd1cb635c3a07dc1b8471bc965feb9b04 (diff) | |
download | lwn-e8cc063d83106bc6855c07db0001e8d01cbd8b3e.tar.gz lwn-e8cc063d83106bc6855c07db0001e8d01cbd8b3e.zip |
net: atheros: remove conversion to bool in atl1c_start_mac()
No need to convert '==' expression to bool. This fixes the following
coccicheck warning:
drivers/net/ethernet/atheros/atl1c/atl1c_main.c:1189:63-68: WARNING:
conversion to bool not needed here
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros/atl1c')
-rw-r--r-- | drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 00bd7bd55794..04bc53af12d9 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -1186,7 +1186,7 @@ static void atl1c_start_mac(struct atl1c_adapter *adapter) struct atl1c_hw *hw = &adapter->hw; u32 mac, txq, rxq; - hw->mac_duplex = adapter->link_duplex == FULL_DUPLEX ? true : false; + hw->mac_duplex = adapter->link_duplex == FULL_DUPLEX; hw->mac_speed = adapter->link_speed == SPEED_1000 ? atl1c_mac_speed_1000 : atl1c_mac_speed_10_100; |