Skip to contentSkip to conversation

Si4713: Delete an error message for a failed memory allocation in two functions

PATCH New SF Markus Elfring 1 participant 1 message Sep 16, 2017

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

PATCH 1/1 Si4713: Delete an error message for a failed memory allocation in two functions

From: Markus Elfring <[email protected]>
Date: Sat, 16 Sep 2017 16:15:44 +0200

Omit an extra message for a memory allocation failure in these functions.

This issue was detected by using the Coccinelle software.

---
 drivers/media/radio/si4713/radio-platform-si4713.c | 1 -
 drivers/media/radio/si4713/si4713.c                | 1 -
 2 files changed, 2 deletions(-)
drivers/media/radio/si4713/radio-platform-si4713.c +0 -1
index 27339ec495f6..4b7943e385a0 100644
@@ -162,5 +162,4 @@ static int radio_si4713_pdriver_probe(struct platform_device *pdev)
 	if (!rsdev) {
-		dev_err(&pdev->dev, "Failed to alloc video device.\n");
 		rval = -ENOMEM;
 		goto exit;
 	}
drivers/media/radio/si4713/si4713.c +0 -1
index f4a53f1e856e..46b1fe36f713 100644
@@ -1451,5 +1451,4 @@ static int si4713_probe(struct i2c_client *client,
 	if (!sdev) {
-		dev_err(&client->dev, "Failed to alloc video device.\n");
 		rval = -ENOMEM;
 		goto exit;
 	}
Signature · 1 line
2.14.1