Commit c5ad09a3 authored by Zhen Lei's avatar Zhen Lei Committed by Mark Brown

ASoC: Intel: bdw-rt5677: 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: default avatarZhen Lei <thunder.leizhen@huawei.com>
Acked-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210617103538.1818-1-thunder.leizhen@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4cb9d648
...@@ -423,10 +423,8 @@ static int bdw_rt5677_probe(struct platform_device *pdev) ...@@ -423,10 +423,8 @@ static int bdw_rt5677_probe(struct platform_device *pdev)
/* Allocate driver private struct */ /* Allocate driver private struct */
bdw_rt5677 = devm_kzalloc(&pdev->dev, sizeof(struct bdw_rt5677_priv), bdw_rt5677 = devm_kzalloc(&pdev->dev, sizeof(struct bdw_rt5677_priv),
GFP_KERNEL); GFP_KERNEL);
if (!bdw_rt5677) { if (!bdw_rt5677)
dev_err(&pdev->dev, "Can't allocate bdw_rt5677\n");
return -ENOMEM; return -ENOMEM;
}
/* override plaform name, if required */ /* override plaform name, if required */
mach = pdev->dev.platform_data; mach = pdev->dev.platform_data;
......
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