summaryrefslogtreecommitdiffstats
path: root/kernel/events
diff options
context:
space:
mode:
authorAleksa Sarai <cyphar@cyphar.com>2019-12-07 01:13:27 +1100
committerAl Viro <viro@zeniv.linux.org.uk>2019-12-08 19:09:37 -0500
commitce623f89872df4253719be71531116751eeab85f (patch)
treea47f85060eeaa4e4d0a277f81dab29d824fd0c33 /kernel/events
parent2b98149c2377bff12be5dd3ce02ae0506e2dd613 (diff)
downloadlinux-ce623f89872df4253719be71531116751eeab85f.tar.gz
linux-ce623f89872df4253719be71531116751eeab85f.tar.bz2
linux-ce623f89872df4253719be71531116751eeab85f.zip
nsfs: clean-up ns_get_path() signature to return int
ns_get_path() and ns_get_path_cb() only ever return either NULL or an ERR_PTR. It is far more idiomatic to simply return an integer, and it makes all of the callers of ns_get_path() more straightforward to read. Fixes: e149ed2b805f ("take the targets of /proc/*/ns/* symlinks to separate fs") Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/events')
-rw-r--r--kernel/events/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 4ff86d57f9e5..c0b11b234290 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -7495,7 +7495,7 @@ static void perf_fill_ns_link_info(struct perf_ns_link_info *ns_link_info,
{
struct path ns_path;
struct inode *ns_inode;
- void *error;
+ int error;
error = ns_get_path(&ns_path, task, ns_ops);
if (!error) {