cluster_node_size = RTE_ALIGN(cluster_node_size, RTE_CACHE_LINE_SIZE);
stats = realloc(NULL, sz);
- memset(stats, 0, sz);
if (stats) {
+ memset(stats, 0, sz);
stats->fn = fn;
stats->cluster_node_size = cluster_node_size;
stats->max_nodes = 0;
static void
cluster_fini(struct cluster *cluster)
{
- if (cluster->graphs)
- free(cluster->graphs);
+ free(cluster->graphs);
}
static int