提交 80a7f727 编写于 作者: J Julia Lawall 提交者: Mauro Carvalho Chehab

[media] drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c: use correct...

[media] drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c: use correct structure type name in sizeof

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: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 eb4b0ec7
...@@ -227,7 +227,7 @@ static int vpfe_enable_clock(struct vpfe_device *vpfe_dev) ...@@ -227,7 +227,7 @@ static int vpfe_enable_clock(struct vpfe_device *vpfe_dev)
return 0; return 0;
vpfe_dev->clks = kcalloc(vpfe_cfg->num_clocks, vpfe_dev->clks = kcalloc(vpfe_cfg->num_clocks,
sizeof(struct clock *), GFP_KERNEL); sizeof(*vpfe_dev->clks), GFP_KERNEL);
if (vpfe_dev->clks == NULL) if (vpfe_dev->clks == NULL)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册