mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
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: Kulikov Vasiliy <segooon@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
3c2ef841c0
commit
55938b106f
@ -203,7 +203,7 @@ static int davinci_vcif_probe(struct platform_device *pdev)
|
||||
int ret;
|
||||
|
||||
davinci_vcif_dev = kzalloc(sizeof(struct davinci_vcif_dev), GFP_KERNEL);
|
||||
if (!davinci_vc) {
|
||||
if (!davinci_vcif_dev) {
|
||||
dev_dbg(&pdev->dev,
|
||||
"could not allocate memory for private data\n");
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user