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:
@@ -50,7 +50,7 @@ static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns,
|
||||
if (!ns)
|
||||
goto fail_dec;
|
||||
|
||||
err = ns_common_init(ns, &utsns_operations);
|
||||
err = ns_common_init(ns);
|
||||
if (err)
|
||||
goto fail_free;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user