Skip to content

Commit

Permalink
e1000: remove unneeded conversion to bool
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JasonYanHw authored and davem330 committed Apr 21, 2020
1 parent 7ff4f06 commit c95576a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c95576a

Please sign in to comment.