Skip to content

Commit

Permalink
[media] omap3isp: Remove unneeded memset after kzalloc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed Feb 5, 2013
1 parent 3fdfeda commit 3d5a71e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion drivers/media/platform/omap3isp/isph3a_aewb.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ int omap3isp_h3a_aewb_init(struct isp_device *isp)
if (!aewb_cfg)
return -ENOMEM;

memset(aewb, 0, sizeof(*aewb));
aewb->ops = &h3a_aewb_ops;
aewb->priv = aewb_cfg;
aewb->dma_ch = -1;
Expand Down
1 change: 0 additions & 1 deletion drivers/media/platform/omap3isp/isph3a_af.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ int omap3isp_h3a_af_init(struct isp_device *isp)
if (af_cfg == NULL)
return -ENOMEM;

memset(af, 0, sizeof(*af));
af->ops = &h3a_af_ops;
af->priv = af_cfg;
af->dma_ch = -1;
Expand Down
1 change: 0 additions & 1 deletion drivers/media/platform/omap3isp/isphist.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ int omap3isp_hist_init(struct isp_device *isp)
if (hist_cfg == NULL)
return -ENOMEM;

memset(hist, 0, sizeof(*hist));
hist->isp = isp;

if (HIST_CONFIG_DMA)
Expand Down

0 comments on commit 3d5a71e

Please sign in to comment.