aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>2018-10-26 14:44:46 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-11-20 14:39:04 -0500
commitdf17b7e02f0fa3a13c5aac26c317447d72612e1c (patch)
treedb9599849635954ddeb1f1cea9b250180973a32f /drivers/net/ethernet/intel/ice/ice_lib.c
parent2c5492de8770b72cb9c97c91fbcbb90c16470819 (diff)
ice: Cosmetic formatting changes
1. Fix several cases of double spacing 2. Fix typos 3. Capitalize abbreviations Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
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