net: hinic: simplify code logic
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 21 Sep 2022 12:33:54 +0000 (20:33 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 00:41:27 +0000 (17:41 -0700)
commit4f304250c39b4c6bae40521524cc9235ba8ab327
tree9f9e65a0bed1b496b8b40d6c84c5fa857e07fd6e
parent97d6a3e642bfe1671c746d6bed478eabf2c23d73
net: hinic: simplify code logic

simplify code logic in hinic_ndo_set_vf_trust() and
hinic_ndo_set_vf_spoofchk().

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_sriov.c