aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-12-21 14:44:34 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-05 11:48:13 -0500
commit3d5a71ef32742298f9022043160a2c6cbfdf30ac (patch)
tree4c5350b2e88c7aa30abae2bf0379c587ca0bde13 /drivers/media/platform
parent3fdfedaaa7f243f3347084231c64f6c1be0ba131 (diff)
[media] omap3isp: Remove unneeded memset after kzalloc
kzalloc initializes the memory it allocates to 0, there's no need for an explicit memset. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/omap3isp/isph3a_aewb.c1
-rw-r--r--drivers/media/platform/omap3isp/isph3a_af.c1
-rw-r--r--drivers/media/platform/omap3isp/isphist.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/platform/omap3isp/isph3a_aewb.c b/drivers/media/platform/omap3isp/isph3a_aewb.c
index 036e9961d027..1b908fd2e3cf 100644
--- a/drivers/media/platform/omap3isp/isph3a_aewb.c
+++ b/drivers/media/platform/omap3isp/isph3a_aewb.c
@@ -306,7 +306,6 @@ int omap3isp_h3a_aewb_init(struct isp_device *isp)
306 if (!aewb_cfg) 306 if (!aewb_cfg)
307 return -ENOMEM; 307 return -ENOMEM;
308 308
309 memset(aewb, 0, sizeof(*aewb));
310 aewb->ops = &h3a_aewb_ops; 309 aewb->ops = &h3a_aewb_ops;
311 aewb->priv = aewb_cfg; 310 aewb->priv = aewb_cfg;
312 aewb->dma_ch = -1; 311 aewb->dma_ch = -1;
diff --git a/drivers/media/platform/omap3isp/isph3a_af.c b/drivers/media/platform/omap3isp/isph3a_af.c
index 42ccce318d5d..d645b418ca6a 100644
--- a/drivers/media/platform/omap3isp/isph3a_af.c
+++ b/drivers/media/platform/omap3isp/isph3a_af.c
@@ -369,7 +369,6 @@ int omap3isp_h3a_af_init(struct isp_device *isp)
369 if (af_cfg == NULL) 369 if (af_cfg == NULL)
370 return -ENOMEM; 370 return -ENOMEM;
371 371
372 memset(af, 0, sizeof(*af));
373 af->ops = &h3a_af_ops; 372 af->ops = &h3a_af_ops;
374 af->priv = af_cfg; 373 af->priv = af_cfg;
375 af->dma_ch = -1; 374 af->dma_ch = -1;
diff --git a/drivers/media/platform/omap3isp/isphist.c b/drivers/media/platform/omap3isp/isphist.c
index 2d759c56f37c..da2fa98b501a 100644
--- a/drivers/media/platform/omap3isp/isphist.c
+++ b/drivers/media/platform/omap3isp/isphist.c
@@ -481,7 +481,6 @@ int omap3isp_hist_init(struct isp_device *isp)
481 if (hist_cfg == NULL) 481 if (hist_cfg == NULL)
482 return -ENOMEM; 482 return -ENOMEM;
483 483
484 memset(hist, 0, sizeof(*hist));
485 hist->isp = isp; 484 hist->isp = isp;
486 485
487 if (HIST_CONFIG_DMA) 486 if (HIST_CONFIG_DMA)