i40e: Delete an error message for a failed memory allocation in i40e_init_interrupt_scheme()
Subsystems (4)
PATCH 1/1 i40e: Delete an error message for a failed memory allocation in i40e_init_interrupt_scheme()
From: Markus Elfring <[email protected]>
Date: Mon, 1 Jan 2018 20:38:14 +0100
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
--- drivers/net/ethernet/intel/i40e/i40e_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +2 -3
@@ -10445,10 +10445,9 @@ static int i40e_init_interrupt_scheme(struct i40e_pf *pf)/* set up vector assignment tracking */ size =sizeof (struct i40e_lump_tracking ) + (sizeof (u16) * vectors); pf->irq_pile =kzalloc (size,GFP_KERNEL ); -if (!pf->irq_pile) { -dev_err (&pf->pdev->dev,"error allocating irq_pile memory\n" ); +if (!pf->irq_pile)return -ENOMEM ; - } + pf->irq_pile->num_entries = vectors; pf->irq_pile->search_hint =0 ;
Signature · 1 line
2.15.1
Quoted 8 lines · On Mon, 1 Jan 2018 20:43:35 +0100 SF Markus Elfring…
From: Markus Elfring <[email protected]>
Date: Mon, 1 Jan 2018 20:38:14 +0100Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
Thanks for the patch.
Bowers
PATCH 1/1 i40e: Delete an error message for a failed memory allocation in i40e_init_interrupt_scheme()
In reply to SF Markus ElfringQuoted 13 lines
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of SF Markus Elfring
Sent: Monday, January 1, 2018 11:44 AM
To: netdev at vger.kernel.org; intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T <[email protected]>
Cc: kernel-janitors at vger.kernel.org; LKML <[email protected]>
Subject: [Intel-wired-lan] [PATCH] i40e: Delete an error message for a failed memory allocation ini40e_init_interrupt_scheme()From: Markus Elfring <[email protected]>
Date: Mon, 1 Jan 2018 20:38:14 +0100
Quoted 8 lines
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)