Skip to contentSkip to conversation

ASoC: Broadwell RT5677: Delete an error message for a failed memory allocation in bdw_rt5677_probe()

PATCH New SF Markus Elfring 1 participant 1 message Aug 11, 2017

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

PATCH 1/1 ASoC: Broadwell RT5677: Delete an error message for a failed memory allocation in bdw_rt5677_probe()

From: Markus Elfring <[email protected]>
Date: Fri, 11 Aug 2017 13:05:40 +0200

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

This issue was detected by using the Coccinelle software.

---
 sound/soc/intel/boards/bdw-rt5677.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/soc/intel/boards/bdw-rt5677.c +1 -3
index 058b8ccedf02..4b1431c3b460 100644
@@ -349,7 +349,5 @@ static int bdw_rt5677_probe(struct platform_device *pdev)
-	if (!bdw_rt5677) {
-		dev_err(&pdev->dev, "Can't allocate bdw_rt5677\n");
+	if (!bdw_rt5677)
 		return -ENOMEM;
-	}
 
 	snd_soc_card_set_drvdata(&bdw_rt5677_card, bdw_rt5677);
 
Signature · 1 line
2.14.0