]> git.itanic.dy.fi Git - scan-pagemap/commitdiff
alloc_map: Remove redundat memset
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Wed, 12 Oct 2011 16:16:05 +0000 (19:16 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Wed, 12 Oct 2011 16:16:05 +0000 (19:16 +0300)
The struct is already filled with zeroes by calloc, thus the memset
call is not needed.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
parse.c

diff --git a/parse.c b/parse.c
index 5e29ea576d730d9d49c5a3e5940ec72505be15b5..97d76aa1889ddf8cdf6fbc70ee40f24de00390b1 100644 (file)
--- 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;