mirror of
https://github.com/torvalds/linux.git
synced 2026-01-24 23:16:46 +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:
@@ -97,7 +97,7 @@ static struct time_namespace *clone_time_ns(struct user_namespace *user_ns,
|
||||
if (!ns->vvar_page)
|
||||
goto fail_free;
|
||||
|
||||
err = ns_common_init(ns, &timens_operations);
|
||||
err = ns_common_init(ns);
|
||||
if (err)
|
||||
goto fail_free_page;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user