atom feed16 messages in org.kernel.vger.kernel-janitors[PATCH 1/9] drivers/staging/media/dav...
FromSent OnAttachments
Julia LawallJul 29, 2014 8:16 am 
Julia LawallJul 29, 2014 8:16 am 
Julia LawallJul 29, 2014 8:16 am 
Julia LawallJul 29, 2014 8:16 am 
Julia LawallJul 29, 2014 8:16 am 
Julia LawallJul 29, 2014 8:16 am 
Julia LawallJul 29, 2014 8:16 am 
Julia LawallJul 29, 2014 8:16 am 
Julia LawallJul 29, 2014 8:16 am 
Julia LawallJul 29, 2014 8:16 am 
Brown, Aaron FJul 29, 2014 1:22 pm 
Alexandre CourbotJul 30, 2014 1:27 am 
Julia LawallJul 30, 2014 1:48 am 
David MillerJul 30, 2014 7:14 pm 
David MillerJul 30, 2014 7:14 pm 
Linus WalleijAug 8, 2014 6:26 am 
Subject:[PATCH 1/9] drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c: use correct structure type name in sizeof
From:Julia Lawall (Juli@lip6.fr)
Date:Jul 29, 2014 8:16:43 am
List:org.kernel.vger.kernel-janitors

From: Julia Lawall <Juli@lip6.fr>

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.

Signed-off-by: Julia Lawall <Juli@lip6.fr>

--- drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c
b/drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c index cda8388..255590f 100644 --- a/drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c +++ b/drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c @@ -227,7 +227,7 @@ static int vpfe_enable_clock(struct vpfe_device *vpfe_dev) return 0;

vpfe_dev->clks = kzalloc(vpfe_cfg->num_clocks * - sizeof(struct clock *), GFP_KERNEL); + sizeof(struct clk *), GFP_KERNEL); if (vpfe_dev->clks == NULL) { v4l2_err(vpfe_dev->pdev->driver, "Memory allocation failed\n"); return -ENOMEM;