Commit 55938b10 authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by Mark Brown

ASoC: davinci: check kzalloc() result (typo)

The code checks 'davinci_vc' after kzalloc() and do not checks
'davinci_vcif_dev' that kzalloc() result is assigned to. It seems that
it is a typo (autocompletion?).
Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 3c2ef841
...@@ -203,7 +203,7 @@ static int davinci_vcif_probe(struct platform_device *pdev) ...@@ -203,7 +203,7 @@ static int davinci_vcif_probe(struct platform_device *pdev)
int ret; int ret;
davinci_vcif_dev = kzalloc(sizeof(struct davinci_vcif_dev), GFP_KERNEL); davinci_vcif_dev = kzalloc(sizeof(struct davinci_vcif_dev), GFP_KERNEL);
if (!davinci_vc) { if (!davinci_vcif_dev) {
dev_dbg(&pdev->dev, dev_dbg(&pdev->dev,
"could not allocate memory for private data\n"); "could not allocate memory for private data\n");
return -ENOMEM; return -ENOMEM;
......
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