]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/distribute.c
[cleanup] Convert XMALLOC/memset to XCALLOC
[mirror_frr.git] / lib / distribute.c
index 906e3f6d9c0df26631e144584e6a82461b6a0cdd..242a225c2a32e6ebbaff2c01f0dc2ce54aeb8d78 100644 (file)
@@ -38,12 +38,7 @@ void (*distribute_delete_hook) (struct distribute *);
 static struct distribute *
 distribute_new (void)
 {
-  struct distribute *new;
-
-  new = XMALLOC (MTYPE_DISTRIBUTE, sizeof (struct distribute));
-  memset (new, 0, sizeof (struct distribute));
-
-  return new;
+  return XCALLOC (MTYPE_DISTRIBUTE, sizeof (struct distribute));
 }
 
 /* Free distribute object. */