diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-09-21 20:33:55 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-22 17:41:27 -0700 |
commit | dcbe72d25594e4a52b5ce29d52e57514dd305c79 (patch) | |
tree | 95af1df7a108b5b30e575fde65eabc45650305f8 /drivers/net/ethernet/huawei | |
parent | 4f304250c39b4c6bae40521524cc9235ba8ab327 (diff) | |
download | linux-stable-dcbe72d25594e4a52b5ce29d52e57514dd305c79.tar.gz linux-stable-dcbe72d25594e4a52b5ce29d52e57514dd305c79.tar.bz2 linux-stable-dcbe72d25594e4a52b5ce29d52e57514dd305c79.zip |
net: hinic: change hinic_deinit_vf_hw() to void
When hinic_pci_sriov_disable() calls hinic_deinit_vf_hw(), it doesn't
care about the return value of hinic_deinit_vf_hw(). Also
hinic_deinit_vf_hw() is return 0, so change it to void.
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/huawei')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_sriov.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_sriov.c b/drivers/net/ethernet/huawei/hinic/hinic_sriov.c index 00a66e6e3060..d54ccef467e7 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_sriov.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_sriov.c @@ -1131,8 +1131,8 @@ static void hinic_clear_vf_infos(struct hinic_dev *nic_dev, u16 vf_id) hinic_init_vf_infos(&nic_dev->hwdev->func_to_io, HW_VF_ID_TO_OS(vf_id)); } -static int hinic_deinit_vf_hw(struct hinic_sriov_info *sriov_info, - u16 start_vf_id, u16 end_vf_id) +static void hinic_deinit_vf_hw(struct hinic_sriov_info *sriov_info, + u16 start_vf_id, u16 end_vf_id) { struct hinic_dev *nic_dev; u16 func_idx, idx; @@ -1145,8 +1145,6 @@ static int hinic_deinit_vf_hw(struct hinic_sriov_info *sriov_info, HINIC_HW_WQ_PAGE_SIZE); hinic_clear_vf_infos(nic_dev, idx); } - - return 0; } int hinic_vf_func_init(struct hinic_hwdev *hwdev) |