Skip to content

Commit c95576a

Browse files
JasonYanHwdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7ff4f06 commit c95576a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/e1000/e1000_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ static bool e1000_check_64k_bound(struct e1000_adapter *adapter, void *start,
14761476
if (hw->mac_type == e1000_82545 ||
14771477
hw->mac_type == e1000_ce4100 ||
14781478
hw->mac_type == e1000_82546) {
1479-
return ((begin ^ (end - 1)) >> 16) != 0 ? false : true;
1479+
return ((begin ^ (end - 1)) >> 16) == 0;
14801480
}
14811481

14821482
return true;

0 commit comments

Comments
 (0)