Skip to contentSkip to conversation

tty: nozomi: Delete an error message for a failed memory allocation in nozomi_card_init()

PATCH New SF Markus Elfring 1 participant 1 message Dec 10, 2017

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

PATCH 1/1 tty: nozomi: Delete an error message for a failed memory allocation in nozomi_card_init()

From: Markus Elfring <[email protected]>
Date: Sun, 10 Dec 2017 15:37:26 +0100

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

This issue was detected by using the Coccinelle software.

---
 drivers/tty/nozomi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/tty/nozomi.c +0 -1
index b57b35066ebe..51f515ca4007 100644
@@ -1376,7 +1376,6 @@ static int nozomi_card_init(struct pci_dev *pdev,
 
 	dc->send_buf = kmalloc(SEND_BUF_MAX, GFP_KERNEL);
 	if (!dc->send_buf) {
-		dev_err(&pdev->dev, "Could not allocate send buffer?\n");
 		ret = -ENOMEM;
 		goto err_free_sbuf;
 	}
Signature · 1 line
2.15.1