]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0713f676b13f224e25bac35f154fb577e68972ac
tree0dde0d1046d14ac45e35bee02144f432d161f71f
parent84678b9135582f023a0845e23ee62c8684328054
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