Skip to contentSkip to conversation

misc/mic/host: Delete an error message for a failed memory allocation in mic_probe()

PATCH New SF Markus Elfring 1 participant 1 message Jan 9, 2018

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

PATCH 1/1 misc/mic/host: Delete an error message for a failed memory allocation in mic_probe()

From: Markus Elfring <[email protected]>
Date: Tue, 9 Jan 2018 17:03:41 +0100

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

This issue was detected by using the Coccinelle software.

---
 drivers/misc/mic/host/mic_main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/misc/mic/host/mic_main.c +0 -1
index 035be3e9ceba..e3d38f6018c4 100644
@@ -175,7 +175,6 @@ static int mic_probe(struct pci_dev *pdev,
 	mdev = kzalloc(sizeof(*mdev), GFP_KERNEL);
 	if (!mdev) {
 		rc = -ENOMEM;
-		dev_err(&pdev->dev, "mdev kmalloc failed rc %d\n", rc);
 		goto mdev_alloc_fail;
 	}
 	mdev->id = ida_simple_get(&g_mic_ida, 0, MIC_MAX_NUM_DEVS, GFP_KERNEL);
Signature · 1 line
2.15.1