aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_vf_lib.c
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2022-02-22 16:27:05 -0800
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-03-15 13:22:44 -0700
commitfe99d1c06c16b8a97d844a3554f67f601abeb738 (patch)
treed405a078111675e3a9a139de3f189c3063689965 /drivers/net/ethernet/intel/ice/ice_vf_lib.c
parentice: drop is_vflr parameter from ice_reset_all_vfs (diff)
downloadlinux-dev-fe99d1c06c16b8a97d844a3554f67f601abeb738.tar.xz
linux-dev-fe99d1c06c16b8a97d844a3554f67f601abeb738.zip
ice: make ice_reset_all_vfs void
The ice_reset_all_vfs function returns true if any VFs were reset, and false otherwise. However, no callers check the return value. Drop this return value and make the function void since the callers do not care about this. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_vf_lib.c')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_vf_lib.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_vf_lib.c b/drivers/net/ethernet/intel/ice/ice_vf_lib.c
index 996d84a3303d..6f9e8383c69b 100644
--- a/drivers/net/ethernet/intel/ice/ice_vf_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_vf_lib.c
@@ -364,7 +364,7 @@ ice_vf_clear_vsi_promisc(struct ice_vf *vf, struct ice_vsi *vsi, u8 promisc_m)
*
* Returns true if any VFs were reset, and false otherwise.
*/
-bool ice_reset_all_vfs(struct ice_pf *pf)
+void ice_reset_all_vfs(struct ice_pf *pf)
{
struct device *dev = ice_pf_to_dev(pf);
struct ice_hw *hw = &pf->hw;
@@ -373,7 +373,7 @@ bool ice_reset_all_vfs(struct ice_pf *pf)
/* If we don't have any VFs, then there is nothing to reset */
if (!ice_has_vfs(pf))
- return false;
+ return;
mutex_lock(&pf->vfs.table_lock);
@@ -387,7 +387,7 @@ bool ice_reset_all_vfs(struct ice_pf *pf)
/* If VFs have been disabled, there is no need to reset */
if (test_and_set_bit(ICE_VF_DIS, pf->state)) {
mutex_unlock(&pf->vfs.table_lock);
- return false;
+ return;
}
/* Begin reset on all VFs at once */
@@ -439,8 +439,6 @@ bool ice_reset_all_vfs(struct ice_pf *pf)
clear_bit(ICE_VF_DIS, pf->state);
mutex_unlock(&pf->vfs.table_lock);
-
- return true;
}
/**