Skip to contentSkip to conversation

i40e:Make the function i40e_vsi_enable_irq have a return type of void

PATCH New Nicholas Krause 1 participant 1 message Jun 30, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i40e:Make the function i40e_vsi_enable_irq have a return type of void

This makes the function i40e_enable_irq have a return type of void now due to this particular function always running successfully and therefore can be declared as void due to never signalling its caller with a error code due to the above reason.

---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -2
index 48a52b3..cbd5928 100644
@@ -3110,7 +3110,7 @@ static void i40e_vsi_disable_irq(struct i40e_vsi *vsi)
  * i40e_vsi_enable_irq - Enable IRQ for the given VSI
  * @vsi: the VSI being configured
  **/
-static int i40e_vsi_enable_irq(struct i40e_vsi *vsi)
+static void i40e_vsi_enable_irq(struct i40e_vsi *vsi)
 {
 	struct i40e_pf *pf = vsi->back;
 	int i;
@@ -3124,7 +3124,6 @@ static int i40e_vsi_enable_irq(struct i40e_vsi *vsi)
 	}
 
 	i40e_flush(&pf->hw);
-	return 0;
 }
 
 /**
Signature · 1 line
2.1.4