aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorWen Yang <[email protected]>2018-11-27 09:06:10 +0000
committerArnaldo Carvalho de Melo <[email protected]>2018-12-17 17:54:36 +0000
commit19702894cd93d79c5b5a63f56f6f417595b1a57c (patch)
treea2fc8b8ae7d1cc3ad36d64e9e095eeafc08a51a4 /tools/perf/util/scripting-engines/trace-event-perl.c
parenttools include: Adopt ERR_CAST() from the kernel err.h header (diff)
downloadkernel-19702894cd93d79c5b5a63f56f6f417595b1a57c.tar.gz
kernel-19702894cd93d79c5b5a63f56f6f417595b1a57c.zip
perf bpf: Use ERR_CAST instead of ERR_PTR(PTR_ERR())
Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)). This makes it more readable and also fix this warning detected by err_cast.cocci: tools/perf/util/bpf-loader.c:1606:11-18: WARNING: ERR_CAST can be used with op Signed-off-by: Wen Yang <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Julia Lawall <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Wen Yang <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions