linux/drivers/net/ethernet/hisilicon
Colin Ian King efd5a15845 net: hns3: fix expression that is currently always true
The ||  condition in hdev->fd_active_type != HCLGE_FD_ARFS_ACTIVE ||
hdev->fd_active_type != HCLGE_FD_RULE_NONE will always be true because
hdev->fd_active_type cannot be equal to two different values at the same
time. The expression is always true which is not correct. Fix this by
replacing || with && to correct the logic in the expression.

Addresses-Coverity: ("Constant expression result")
Fixes: 0205ec041e ("net: hns3: add support for hw tc offload of tc flower")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Huazhong Tan <tanhuazhong@huawei.com>
Link: https://lore.kernel.org/r/20201215000033.85383-1-colin.king@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-14 19:42:49 -08:00
..
hns hisilicon/hns: convert comma to semicolon 2020-12-09 16:23:08 -08:00
hns3 net: hns3: fix expression that is currently always true 2020-12-14 19:42:49 -08:00
hip04_eth.c hisilicon: let core reject the unsupported coalescing parameters 2020-03-05 12:12:35 -08:00
hisi_femac.c net: convert suitable drivers to use phy_do_ioctl_running 2020-01-23 10:49:30 +01:00
hix5hd2_gmac.c net: hix5hd2_gmac: Remove unneeded cast from memory allocation 2020-07-24 17:28:51 -07:00
hns_mdio.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00