ASoC: davinci: check kzalloc() result (typo)
authorKulikov Vasiliy <segooon@gmail.com>
Fri, 16 Jul 2010 16:16:17 +0000 (20:16 +0400)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 17 Jul 2010 18:45:56 +0000 (19:45 +0100)
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>
sound/soc/davinci/davinci-vcif.c

index 9aa980d..4867853 100644 (file)
@@ -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;