From e7136ceae5a9858e8ed3a6190e3d2d71e841d4c5 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Wed, 12 Oct 2011 19:16:05 +0300 Subject: [PATCH] alloc_map: Remove redundat memset The struct is already filled with zeroes by calloc, thus the memset call is not needed. Signed-off-by: Timo Kokkonen --- parse.c | 1 - 1 file changed, 1 deletion(-) diff --git a/parse.c b/parse.c index 5e29ea5..97d76aa 100644 --- a/parse.c +++ b/parse.c @@ -49,7 +49,6 @@ static struct maps *alloc_map(void) if (map == NULL) goto err; - memset(map, 0, sizeof(*map)); INIT_LIST_HEAD(&map->list); err: return map; -- 2.44.0