[media] omap3isp: Remove unneeded memset after kzalloc
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 21 Dec 2012 19:44:34 +0000 (16:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 16:48:13 +0000 (14:48 -0200)
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>
drivers/media/platform/omap3isp/isph3a_aewb.c
drivers/media/platform/omap3isp/isph3a_af.c
drivers/media/platform/omap3isp/isphist.c

index 036e9961d0279a174f075b56dbec29fae1a9ffa3..1b908fd2e3cfd4ab5405c3add372c760ca19ee11 100644 (file)
@@ -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;
index 42ccce318d5d08adf107953c5662146dc56a9aeb..d645b418ca6a47294406d12d69c70bea42a793c2 100644 (file)
@@ -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;
index 2d759c56f37c33f4f4b09362acf8125344a34937..da2fa98b501a8b17520030cef5babaf82702a6db 100644 (file)
@@ -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)