Skip to contentSkip to conversation

mtd/maps/vmu-flash: Delete an error message for a failed memory allocation in maple_vmu_read_block()

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

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

PATCH 1/1 mtd/maps/vmu-flash: Delete an error message for a failed memory allocation in maple_vmu_read_block()

From: Markus Elfring <[email protected]>
Date: Thu, 4 Jan 2018 14:54:08 +0100

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

This issue was detected by using the Coccinelle software.

---
 drivers/mtd/maps/vmu-flash.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/mtd/maps/vmu-flash.c +0 -3
index 6b223cfe92b7..a76a5ff402e1 100644
@@ -130,9 +130,6 @@ static int maple_vmu_read_block(unsigned int num, unsigned char *buf,
 	if (!pcache->buffer) {
 		pcache->buffer = kmalloc(card->blocklen, GFP_KERNEL);
 		if (!pcache->buffer) {
-			dev_err(&mdev->dev, "VMU at (%d, %d) - read fails due"
-				" to lack of memory\n", mdev->port,
-				mdev->unit);
 			error = -ENOMEM;
 			goto outB;
 		}
Signature · 1 line
2.15.1