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

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


Hi, Jiri

On 02/26/2016 04:02 AM, Jiri Olsa wrote:
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>


Thank you!!

- Taeung