Commit 8804e073 authored by Adriana Constantinescu's avatar Adriana Constantinescu Committed by Mark Brown

ASoC: omap: Remove unnecessary 'out of memory' message

Out of memory message detected using checkpatch.pl
Signed-off-by: default avatarAdriana Constantinescu <constantinescu33@gmail.com>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c1ae3cfa
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment