On Wed, 30 Oct 2024 11:11:31 +0530 Vipin Varghese <vipin.varghese at amd.com> wrote: > topo_cnfg.l3[j] = (struct core_domain_mapping *) > + malloc(sizeof(struct core_domain_mapping)); Minor nit, no need to cast return value from malloc(). In C void * can be assigned to a type directly.