From 3d5a71ef32742298f9022043160a2c6cbfdf30ac Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 21 Dec 2012 16:44:34 -0300 Subject: [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 Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/omap3isp/isphist.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/media/platform/omap3isp/isphist.c') 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) if (hist_cfg == NULL) return -ENOMEM; - memset(hist, 0, sizeof(*hist)); hist->isp = isp; if (HIST_CONFIG_DMA) -- cgit v1.2.3