git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipcns: extract create_ipc_ns()
[safe/jmp/linux-2.6]
/
ipc
/
namespace.c
diff --git
a/ipc/namespace.c
b/ipc/namespace.c
index
a56fc59
..
231ee53
100644
(file)
--- a/
ipc/namespace.c
+++ b/
ipc/namespace.c
@@
-14,7
+14,7
@@
#include "util.h"
#include "util.h"
-static struct ipc_namespace *c
lone_ipc_ns(struct ipc_namespace *old_ns
)
+static struct ipc_namespace *c
reate_ipc_ns(void
)
{
struct ipc_namespace *ns;
int err;
{
struct ipc_namespace *ns;
int err;
@@
-48,14
+48,9
@@
static struct ipc_namespace *clone_ipc_ns(struct ipc_namespace *old_ns)
struct ipc_namespace *copy_ipcs(unsigned long flags, struct ipc_namespace *ns)
{
struct ipc_namespace *copy_ipcs(unsigned long flags, struct ipc_namespace *ns)
{
- struct ipc_namespace *new_ns;
-
if (!(flags & CLONE_NEWIPC))
return get_ipc_ns(ns);
if (!(flags & CLONE_NEWIPC))
return get_ipc_ns(ns);
-
- new_ns = clone_ipc_ns(ns);
-
- return new_ns;
+ return create_ipc_ns();
}
/*
}
/*