aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-09-24 13:34:00 +0200
committerChristian Brauner <brauner@kernel.org>2025-09-25 09:23:54 +0200
commitaf075603f27b0f6e05f1bdf64bad42fa7cfb033b (patch)
treeb76db4a01798af39da02bf1581beaca1a9302f97 /kernel
parentns: move ns type into struct ns_common (diff)
downloadlinux-af075603f27b0f6e05f1bdf64bad42fa7cfb033b.tar.gz
linux-af075603f27b0f6e05f1bdf64bad42fa7cfb033b.zip
ns: drop assert
Otherwise we warn when e.g., no namespaces are configured but the initial namespace for is still around. Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/nscommon.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/nscommon.c b/kernel/nscommon.c
index 92c9df1e8774..c1fb2bad6d72 100644
--- a/kernel/nscommon.c
+++ b/kernel/nscommon.c
@@ -46,8 +46,6 @@ static void ns_debug(struct ns_common *ns, const struct proc_ns_operations *ops)
VFS_WARN_ON_ONCE(ops != &utsns_operations);
break;
#endif
- default:
- VFS_WARN_ON_ONCE(true);
}
}
#endif