]> git.baikalelectronics.ru Git - kernel.git/commit
e1000: remove unneeded conversion to bool
authorJason Yan <yanaijie@huawei.com>
Mon, 20 Apr 2020 12:35:06 +0000 (20:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:45:32 +0000 (15:45 -0700)
commitc95576a34cf797f8ad34032a28b93bb7314a636d
tree5e8ea2f19ed342ba1d1862d116079a98a82c6a3c
parent7ff4f0631faa45d90775b2468a8d5ef580c7d359
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>
drivers/net/ethernet/intel/e1000/e1000_main.c