[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180116144522.GA16107@kernel.org>
Date: Tue, 16 Jan 2018 11:45:22 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Jin Yao <yao.jin@...ux.intel.com>
Cc: jolsa@...nel.org, peterz@...radead.org, mingo@...hat.com,
alexander.shishkin@...ux.intel.com, Linux-kernel@...r.kernel.org,
ak@...ux.intel.com, kan.liang@...el.com, yao.jin@...el.com
Subject: Re: [PATCH v1 7/8] perf report: Remove the time slices number
limitation
Em Wed, Jan 10, 2018 at 11:00:32PM +0800, Jin Yao escreveu:
> error:
> + if (report.ptime_range)
> + free(report.ptime_range);
> +
You don't need to check if it is NULL, free(NULL) is ok and more
compact, I'm fixing this.
- Arnaldo
Powered by blists - more mailing lists