[dpdk-dev] [PATCHv2 1/2] bitratestats: add support for free

Stephen Hemminger stephen at networkplumber.org
Tue May 19 17:19:36 CEST 2020


On Thu, 14 May 2020 15:00:00 +0530
Hemant Agrawal <hemant.agrawal at nxp.com> wrote:

>  
> +int
> +rte_stats_bitrate_free(struct rte_stats_bitrates *bitrate_data)
> +{
> +	if (bitrate_data)
> +		rte_free(bitrate_data);
> +	return 0;
> +}

rte_free of NULL is allowed, the test is not needed.

Should be void not int function.



More information about the dev mailing list