Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13169bad authored by Markus Elfring's avatar Markus Elfring Committed by Jeff Kirsher
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 888f2293
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
	}