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>
This commit is contained in:
Родитель
c1ae3cfa0e
Коммит
8804e073a8
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче