[media] drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c: use correct structure...
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 29 Jul 2014 15:16:43 +0000 (12:16 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 16:25:34 +0000 (14:25 -0200)
Correct typo in the name of the type given to sizeof.  Because it is the
size of a pointer that is wanted, the typo has no impact on compilation or
execution.

This problem was found using Coccinelle (http://coccinelle.lip6.fr/).  The
semantic patch used can be found in message 0 of this patch series.

[Replace sizeof(type) by sizeof(variable)]]

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c

index 01df0683e950734ca66fbc1b3fb7289acfea1a58..69b678ca40c06a3a13c435aba2876b714ae642de 100644 (file)
@@ -227,7 +227,7 @@ static int vpfe_enable_clock(struct vpfe_device *vpfe_dev)
                return 0;
 
        vpfe_dev->clks = kcalloc(vpfe_cfg->num_clocks,
-                                sizeof(struct clock *), GFP_KERNEL);
+                                sizeof(*vpfe_dev->clks), GFP_KERNEL);
        if (vpfe_dev->clks == NULL)
                return -ENOMEM;