perf events parse: Remove some needless local variables
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Aug 2017 18:57:30 +0000 (15:57 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Aug 2017 19:39:15 +0000 (16:39 -0300)
commit07806a1df1ccbdd2fa5ba56d01bb77d11c828331
tree0dde0d1046d14ac45e35bee02144f432d161f71f
parentd6d4fc6fefda26a88eb99d30e87a8834c59c144a
perf events parse: Remove some needless local variables

Those are just casting a void pointer to a struct to then pass them to
functions, i.e. remove the local variables and pass the void pointer
directly, the casting will be done and the code will be shorter.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-bzfodzr3mb46gy7u7v0mqad6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.y