Skip to contentSkip to conversation

igb: Delete an error message for a failed memory allocation in igb_enable_sriov()

PATCH In review SF Markus Elfring 2 participants 2 messages Jan 1, 2018 – Jan 4, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igb: Delete an error message for a failed memory allocation in igb_enable_sriov()

From: Markus Elfring <[email protected]>
Date: Mon, 1 Jan 2018 20:53:10 +0100

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

This issue was detected by using the Coccinelle software.

---
 drivers/net/ethernet/intel/igb/igb_main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/intel/igb/igb_main.c +0 -2
index e94d3c256667..1621aaa3eb28 100644
@@ -3200,8 +3200,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;
 	}
Signature · 1 line
2.15.1
Tested-by on v1 1/1
#1 lore raw
Quoted 12 lines

From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of SF Markus Elfring
Sent: Monday, January 1, 2018 11:57 AM
To: netdev at vger.kernel.org; intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T <[email protected]>
Cc: kernel-janitors at vger.kernel.org; LKML <[email protected]>
Subject: [Intel-wired-lan] [PATCH] igb: Delete an error message for a failed memory allocation in igb_enable_sriov()

From: Markus Elfring <[email protected]>
Date: Mon, 1 Jan 2018 20:53:10 +0100

Quoted 9 lines

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

This issue was detected by using the Coccinelle software.

---
 drivers/net/ethernet/intel/igb/igb_main.c | 2 --
 1 file changed, 2 deletions(-)