[dpdk-dev] [PATCHv2 1/2] bitratestats: add support for free
Thomas Monjalon
thomas at monjalon.net
Sat Jul 11 00:30:12 CEST 2020
19/05/2020 17:19, Stephen Hemminger:
> 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.
Ping, why no answer? Can we expect a v3?
More information about the dev
mailing list