]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Remove unneeded conversion to bool
authorJason Yan <yanaijie@huawei.com>
Mon, 20 Apr 2020 12:34:48 +0000 (20:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:45:32 +0000 (15:45 -0700)
commitba25538cef1a10abdc55841839cf35828aee23e8
tree5d2732db3b8663614567a0b03840c6d7a9f9faf3
parent2122813bb9378e7d6a34a26c565b74a6b70911bb
i40e: 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/i40e/i40e_main.c:1614:52-57: WARNING:
conversion to bool not needed here
drivers/net/ethernet/intel/i40e/i40e_main.c:11439:52-57: 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/i40e/i40e_main.c