Skip to content

Commit 557450c

Browse files
elfringJeff Kirsher
authored andcommitted
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: Markus Elfring <[email protected]> Acked-by: Jesse Brandeburg <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 7b0b1a6 commit 557450c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10394,10 +10394,9 @@ static int i40e_init_interrupt_scheme(struct i40e_pf *pf)
1039410394
/* set up vector assignment tracking */
1039510395
size = sizeof(struct i40e_lump_tracking) + (sizeof(u16) * vectors);
1039610396
pf->irq_pile = kzalloc(size, GFP_KERNEL);
10397-
if (!pf->irq_pile) {
10398-
dev_err(&pf->pdev->dev, "error allocating irq_pile memory\n");
10397+
if (!pf->irq_pile)
1039910398
return -ENOMEM;
10400-
}
10399+
1040110400
pf->irq_pile->num_entries = vectors;
1040210401
pf->irq_pile->search_hint = 0;
1040310402

0 commit comments

Comments
 (0)