summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/bpf_testmod/.gitignore
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-12-15 03:00:33 +0300
committerJakub Kicinski <kuba@kernel.org>2020-12-15 06:42:49 +0300
commitefd5a1584537698220578227e6467638307c2a0b (patch)
tree086703b7b189d2f29f994d816b7e021ca6151597 /tools/testing/selftests/bpf/bpf_testmod/.gitignore
parenta268e0f2455c32653140775662b40c2b1f1b2efa (diff)
downloadlinux-efd5a1584537698220578227e6467638307c2a0b.tar.xz
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: 0205ec041ec6 ("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>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_testmod/.gitignore')
0 files changed, 0 insertions, 0 deletions