i40e: Delete an error message for a failed memory allocation in i40e_init_interrupt_s...
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 1 Jan 2018 19:43:35 +0000 (20:43 +0100)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 23 Jan 2018 19:29:19 +0000 (11:29 -0800)
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 <elfring@users.sourceforge.net>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index ddf489f267d1dffaa1eeff11e5028ef2389ba977..9926ed85d9fafdad4dd101e3604b5fa3b9f0c497 100644 (file)
@@ -10394,10 +10394,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;