From: Timo Kokkonen Date: Wed, 12 Oct 2011 16:16:05 +0000 (+0300) Subject: alloc_map: Remove redundat memset X-Git-Url: http://git.itanic.dy.fi/?p=scan-pagemap;a=commitdiff_plain;h=e7136ceae5a9858e8ed3a6190e3d2d71e841d4c5 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 --- 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;