i40e:Make the function i40e_vsi_enable_irq have a return type of void
Subsystems (2)
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.
Signed-off-by Nicholas Krause <[email protected]>
--- 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
@@ -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