mirror of
https://github.com/torvalds/linux.git
synced 2025-11-30 23:16:01 +07:00
ns: simplify ns_common_init() further
Simply derive the ns operations from the namespace type. Acked-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
@@ -62,7 +62,7 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
|
||||
if (ns == NULL)
|
||||
goto fail_dec;
|
||||
|
||||
err = ns_common_init(ns, &ipcns_operations);
|
||||
err = ns_common_init(ns);
|
||||
if (err)
|
||||
goto fail_free;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user