linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adriana Constantinescu <constantinescu33@gmail.com>
To: peter.ujfalusi@ti.com, jarkko.nikula@bitmer.com, broonie@kernel.org
Cc: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org,
	lgirdwood@gmail.com,
	Adriana Constantinescu <constantinescu33@gmail.com>
Subject: [PATCH] ASoC: omap: Remove unnecessary 'out of memory' message
Date: Sun, 26 Feb 2017 21:12:06 +0200	[thread overview]
Message-ID: <1488136326-3602-1-git-send-email-constantinescu33@gmail.com> (raw)

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

             reply	other threads:[~2017-02-26 19:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-26 19:12 Adriana Constantinescu [this message]
2017-03-07 13:33 ` Applied "ASoC: omap: Remove unnecessary 'out of memory' message" to the asoc tree Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1488136326-3602-1-git-send-email-constantinescu33@gmail.com \
    --to=constantinescu33@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=jarkko.nikula@bitmer.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=peter.ujfalusi@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).