mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00: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:
@@ -103,7 +103,7 @@ static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns
|
||||
if (ns->pid_cachep == NULL)
|
||||
goto out_free_idr;
|
||||
|
||||
err = ns_common_init(ns, &pidns_operations);
|
||||
err = ns_common_init(ns);
|
||||
if (err)
|
||||
goto out_free_idr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user