mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
ASoC: fsl: remove unnecessary oom message
Fixes scripts/checkpatch.pl warning: WARNING: Possible unnecessary 'out of memory' message Remove it can help us save a bit of memory. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/r/20210617103141.1765-1-thunder.leizhen@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
657e473e88
commit
723ca2f894
@ -209,10 +209,8 @@ static int imx_audmix_probe(struct platform_device *pdev)
|
||||
|
||||
/* for CPU/Codec/Platform x 2 */
|
||||
dlc = devm_kcalloc(&pdev->dev, 6, sizeof(*dlc), GFP_KERNEL);
|
||||
if (!dlc) {
|
||||
dev_err(&pdev->dev, "failed to allocate dai_link\n");
|
||||
if (!dlc)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ret = of_parse_phandle_with_args(audmix_np, "dais", NULL, i,
|
||||
&args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user