From: Markus Elfring Date: Mon, 1 Jan 2018 19:56:55 +0000 (+0100) Subject: igb: Delete an error message for a failed memory allocation in igb_enable_sriov() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=13169bad2b91cc37db5e0a9a9fa70e03bd1afd2d;p=linux.git igb: Delete an error message for a failed memory allocation in igb_enable_sriov() 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 Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index ac83de48a4d3b..b88fae7853695 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -3214,8 +3214,6 @@ static int igb_enable_sriov(struct pci_dev *pdev, int num_vfs) /* if allocation failed then we do not support SR-IOV */ if (!adapter->vf_data) { adapter->vfs_allocated_count = 0; - dev_err(&pdev->dev, - "Unable to allocate memory for VF Data Storage\n"); err = -ENOMEM; goto out; }