diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-04-20 15:35:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-22 01:45:32 +0300 |
commit | c95576a34cf797f8ad34032a28b93bb7314a636d (patch) | |
tree | 5e8ea2f19ed342ba1d1862d116079a98a82c6a3c /drivers/net | |
parent | 7ff4f0631faa45d90775b2468a8d5ef580c7d359 (diff) | |
download | linux-c95576a34cf797f8ad34032a28b93bb7314a636d.tar.xz |
e1000: remove unneeded conversion to bool
The '==' expression itself is bool, no need to convert it to bool again.
This fixes the following coccicheck warning:
drivers/net/ethernet/intel/e1000/e1000_main.c:1479:44-49: 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')
-rw-r--r-- | drivers/net/ethernet/intel/e1000/e1000_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c index f7103356ef56..0d51cbc88028 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_main.c +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c @@ -1476,7 +1476,7 @@ static bool e1000_check_64k_bound(struct e1000_adapter *adapter, void *start, if (hw->mac_type == e1000_82545 || hw->mac_type == e1000_ce4100 || hw->mac_type == e1000_82546) { - return ((begin ^ (end - 1)) >> 16) != 0 ? false : true; + return ((begin ^ (end - 1)) >> 16) == 0; } return true; |