static XBT_INLINE void surf_resource_free(void *r)
{
surf_resource_t resource = r;
- if (resource->name)
- free(resource->name);
- if (resource->properties)
- xbt_dict_free(&resource->properties);
+ free(resource->name);
+ xbt_dict_free(&resource->properties);
free(resource);
}