]> 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)
commite8d1aa46feaee46f3a292601b3cb2898a6719758
tree5e8ea2f19ed342ba1d1862d116079a98a82c6a3c
parentba25538cef1a10abdc55841839cf35828aee23e8
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