Re: [PATCH 3/3] perf script: Remove duplicated code and needless a script_spec__findnew()

From: Taeung Song
Date: Thu Feb 25 2016 - 14:18:07 EST

On 02/26/2016 04:16 AM, Arnaldo Carvalho de Melo wrote:
Em Thu, Feb 25, 2016 at 08:02:22PM +0100, Jiri Olsa escreveu:
On Fri, Feb 26, 2016 at 12:13:10AM +0900, Taeung Song wrote:
script_spec_register() called two functions
script_spec__find() and script_spec__findnew().
But script_spec__find() was called two times.

So remove script_spec__findnew() and make
script_spec_register() only call once script_spec__find().

Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
Signed-off-by: Taeung Song <treeze.taeung@xxxxxxxxx>

Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>

Looks good, applied.


- Arnaldo

Thank you!!