[Intel-wired-lan] [PATCH] i40e:Make the function i40e_vsi_enable_irq have a return type of void
Nicholas Krause
xerofoify at gmail.com
Tue Jun 30 00:24:58 UTC 2015
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.
Signed-off-by: Nicholas Krause <xerofoify at gmail.com>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 48a52b3..cbd5928 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -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;
}
/**
--
2.1.4
More information about the Intel-wired-lan
mailing list