Commit be1d5eea authored by Shannon Nelson's avatar Shannon Nelson Committed by Jeff Kirsher

i40e: fix curly brace use and return type

Add curly-braces on a multi-line function.  While we're here we
also change to return void in i40e_vsi_clear_rings() since no
caller cares.

Change-Id: I261fcef20e2a39e18d83ec08fdd14456131dee91
Signed-off-by: default avatarShannon Nelson <shannon.nelson@intel.com>
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarKavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 8e2773ae
...@@ -5300,18 +5300,17 @@ static int i40e_vsi_clear(struct i40e_vsi *vsi) ...@@ -5300,18 +5300,17 @@ static int i40e_vsi_clear(struct i40e_vsi *vsi)
* i40e_vsi_clear_rings - Deallocates the Rx and Tx rings for the provided VSI * i40e_vsi_clear_rings - Deallocates the Rx and Tx rings for the provided VSI
* @vsi: the VSI being cleaned * @vsi: the VSI being cleaned
**/ **/
static s32 i40e_vsi_clear_rings(struct i40e_vsi *vsi) static void i40e_vsi_clear_rings(struct i40e_vsi *vsi)
{ {
int i; int i;
if (vsi->tx_rings[0]) if (vsi->tx_rings[0]) {
for (i = 0; i < vsi->num_queue_pairs; i++) { for (i = 0; i < vsi->num_queue_pairs; i++) {
kfree_rcu(vsi->tx_rings[i], rcu); kfree_rcu(vsi->tx_rings[i], rcu);
vsi->tx_rings[i] = NULL; vsi->tx_rings[i] = NULL;
vsi->rx_rings[i] = NULL; vsi->rx_rings[i] = NULL;
} }
}
return 0;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment