diff options
author | Adriana Constantinescu <constantinescu33@gmail.com> | 2017-02-26 21:12:06 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-07 14:29:09 +0100 |
commit | 8804e073a8b7b85e98e46a239da4d2d92adfe124 (patch) | |
tree | 6c5ba5ad415af3c93e21c5ca189c1cc6a69147ed /sound/soc/omap | |
parent | c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff) |
ASoC: omap: Remove unnecessary 'out of memory' message
Out of memory message detected using checkpatch.pl
Signed-off-by: Adriana Constantinescu <constantinescu33@gmail.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/omap')
-rw-r--r-- | sound/soc/omap/rx51.c | 5 |
1 files changed, 2 insertions, 3 deletions
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, |