aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_lib.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c
index a5961a8fe73c..534221d80200 100644
--- a/drivers/net/ethernet/intel/ice/ice_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_lib.c
@@ -1012,7 +1012,7 @@ void ice_vsi_free_q_vectors(struct ice_vsi *vsi)
1012 * @vsi: the VSI being configured 1012 * @vsi: the VSI being configured
1013 * @v_idx: index of the vector in the VSI struct 1013 * @v_idx: index of the vector in the VSI struct
1014 * 1014 *
1015 * We allocate one q_vector. If allocation fails we return -ENOMEM. 1015 * We allocate one q_vector. If allocation fails we return -ENOMEM.
1016 */ 1016 */
1017static int ice_vsi_alloc_q_vector(struct ice_vsi *vsi, int v_idx) 1017static int ice_vsi_alloc_q_vector(struct ice_vsi *vsi, int v_idx)
1018{ 1018{
@@ -1051,7 +1051,7 @@ out:
1051 * ice_vsi_alloc_q_vectors - Allocate memory for interrupt vectors 1051 * ice_vsi_alloc_q_vectors - Allocate memory for interrupt vectors
1052 * @vsi: the VSI being configured 1052 * @vsi: the VSI being configured
1053 * 1053 *
1054 * We allocate one q_vector per queue interrupt. If allocation fails we 1054 * We allocate one q_vector per queue interrupt. If allocation fails we
1055 * return -ENOMEM. 1055 * return -ENOMEM.
1056 */ 1056 */
1057static int ice_vsi_alloc_q_vectors(struct ice_vsi *vsi) 1057static int ice_vsi_alloc_q_vectors(struct ice_vsi *vsi)
@@ -2136,9 +2136,7 @@ ice_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi,
2136 pf->q_left_rx -= vsi->alloc_rxq; 2136 pf->q_left_rx -= vsi->alloc_rxq;
2137 break; 2137 break;
2138 default: 2138 default:
2139 /* if VSI type is not recognized, clean up the resources and 2139 /* clean up the resources and exit */
2140 * exit
2141 */
2142 goto unroll_vsi_init; 2140 goto unroll_vsi_init;
2143 } 2141 }
2144 2142