summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/davinci/vpfe_capture.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-10-12 05:24:57 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-16 12:43:06 -0200
commite4c0cd0ae34b5e8ea3e8f4eced531dccabe3124c (patch)
tree661b1a95e3751eb1ebd95e27b3b6bbe4f75126a7 /drivers/media/platform/davinci/vpfe_capture.c
parent11691f0e8aaef776320938c9018f5785d09f59c5 (diff)
downloadlinux-e4c0cd0ae34b5e8ea3e8f4eced531dccabe3124c.tar.bz2
[media] DaVinci-VPFE-Capture: Improve another size determination in vpfe_probe()
Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/davinci/vpfe_capture.c')
-rw-r--r--drivers/media/platform/davinci/vpfe_capture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c
index 22f48342584b..9109a286a869 100644
--- a/drivers/media/platform/davinci/vpfe_capture.c
+++ b/drivers/media/platform/davinci/vpfe_capture.c
@@ -1848,7 +1848,7 @@ static int vpfe_probe(struct platform_device *pdev)
}
/* Allocate memory for ccdc configuration */
- ccdc_cfg = kmalloc(sizeof(struct ccdc_config), GFP_KERNEL);
+ ccdc_cfg = kmalloc(sizeof(*ccdc_cfg), GFP_KERNEL);
if (!ccdc_cfg)
goto probe_free_dev_mem;