From: Adriana Constantinescu Date: Sun, 26 Feb 2017 19:12:06 +0000 (+0200) Subject: ASoC: omap: Remove unnecessary 'out of memory' message X-Git-Tag: v4.12-rc1~115^2^2~6^3~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8804e073a8b7b85e98e46a239da4d2d92adfe124;p=karo-tx-linux.git ASoC: omap: Remove unnecessary 'out of memory' message Out of memory message detected using checkpatch.pl Signed-off-by: Adriana Constantinescu Acked-by: Jarkko Nikula Signed-off-by: Mark Brown --- diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index a76845748a10..086b59b7b6d7 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,