diff options
Diffstat (limited to 'ipc/namespace.c')
-rw-r--r-- | ipc/namespace.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ipc/namespace.c b/ipc/namespace.c index a56fc598a807..231ee5359abf 100644 --- a/ipc/namespace.c +++ b/ipc/namespace.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | #include "util.h" | 15 | #include "util.h" |
16 | 16 | ||
17 | static struct ipc_namespace *clone_ipc_ns(struct ipc_namespace *old_ns) | 17 | static struct ipc_namespace *create_ipc_ns(void) |
18 | { | 18 | { |
19 | struct ipc_namespace *ns; | 19 | struct ipc_namespace *ns; |
20 | int err; | 20 | int err; |
@@ -48,14 +48,9 @@ static struct ipc_namespace *clone_ipc_ns(struct ipc_namespace *old_ns) | |||
48 | 48 | ||
49 | struct ipc_namespace *copy_ipcs(unsigned long flags, struct ipc_namespace *ns) | 49 | struct ipc_namespace *copy_ipcs(unsigned long flags, struct ipc_namespace *ns) |
50 | { | 50 | { |
51 | struct ipc_namespace *new_ns; | ||
52 | |||
53 | if (!(flags & CLONE_NEWIPC)) | 51 | if (!(flags & CLONE_NEWIPC)) |
54 | return get_ipc_ns(ns); | 52 | return get_ipc_ns(ns); |
55 | 53 | return create_ipc_ns(); | |
56 | new_ns = clone_ipc_ns(ns); | ||
57 | |||
58 | return new_ns; | ||
59 | } | 54 | } |
60 | 55 | ||
61 | /* | 56 | /* |