Commit 557450c3 authored by Markus Elfring's avatar Markus Elfring Committed by Jeff Kirsher

i40e: Delete an error message for a failed memory allocation in i40e_init_interrupt_scheme()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Acked-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 7b0b1a6d
...@@ -10394,10 +10394,9 @@ static int i40e_init_interrupt_scheme(struct i40e_pf *pf) ...@@ -10394,10 +10394,9 @@ static int i40e_init_interrupt_scheme(struct i40e_pf *pf)
/* set up vector assignment tracking */ /* set up vector assignment tracking */
size = sizeof(struct i40e_lump_tracking) + (sizeof(u16) * vectors); size = sizeof(struct i40e_lump_tracking) + (sizeof(u16) * vectors);
pf->irq_pile = kzalloc(size, GFP_KERNEL); pf->irq_pile = kzalloc(size, GFP_KERNEL);
if (!pf->irq_pile) { if (!pf->irq_pile)
dev_err(&pf->pdev->dev, "error allocating irq_pile memory\n");
return -ENOMEM; return -ENOMEM;
}
pf->irq_pile->num_entries = vectors; pf->irq_pile->num_entries = vectors;
pf->irq_pile->search_hint = 0; pf->irq_pile->search_hint = 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