OSDN Git Service

perf bpf-loader: use PTR_ERR_OR_ZERO inetead of return code
authorDing Xiang <dingxiang@cmss.chinamobile.com>
Fri, 7 Sep 2018 01:34:42 +0000 (09:34 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Sep 2018 13:25:09 +0000 (10:25 -0300)
commite381d1c21eea186daed6834af444575e06841355
tree2e4b392ca67dd16e90b136d9c234591b354d44ac
parent01ab2e91103b8c23dfedfeb799bc8b810d585bd0
perf bpf-loader: use PTR_ERR_OR_ZERO inetead of return code

Use PTR_ERR_OR_ZERO() in bpf__setup_stdout() return code instead of open
coded equivalent.

Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1536284082-23466-2-git-send-email-dingxiang@cmss.chinamobile.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf-loader.c