linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: omap: Remove unnecessary 'out of memory' message
@ 2017-02-26 19:12 Adriana Constantinescu
  2017-03-07 13:33 ` Applied "ASoC: omap: Remove unnecessary 'out of memory' message" to the asoc tree Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Adriana Constantinescu @ 2017-02-26 19:12 UTC (permalink / raw)
  To: peter.ujfalusi, jarkko.nikula, broonie
  Cc: alsa-devel, linux-omap, lgirdwood, Adriana Constantinescu

Out of memory message detected using checkpatch.pl

Signed-off-by: Adriana Constantinescu <constantinescu33@gmail.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
---
 sound/soc/omap/rx51.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c
index a768457..086b59b 100644
--- a/sound/soc/omap/rx51.c
+++ b/sound/soc/omap/rx51.c
@@ -433,10 +433,9 @@ static int rx51_soc_probe(struct platform_device *pdev)
 	}
 
 	pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
-	if (pdata == NULL) {
-		dev_err(card->dev, "failed to create private data\n");
+	if (pdata == NULL)
 		return -ENOMEM;
-	}
+
 	snd_soc_card_set_drvdata(card, pdata);
 
 	pdata->tvout_selection_gpio = devm_gpiod_get(card->dev,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-07 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-26 19:12 [PATCH] ASoC: omap: Remove unnecessary 'out of memory' message Adriana Constantinescu
2017-03-07 13:33 ` Applied "ASoC: omap: Remove unnecessary 'out of memory' message" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).