]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ns: drop assert
authorChristian Brauner <brauner@kernel.org>
Wed, 24 Sep 2025 11:34:00 +0000 (13:34 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 25 Sep 2025 07:23:54 +0000 (09:23 +0200)
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>
kernel/nscommon.c

index 92c9df1e877413d56ced3ab2e4e97fac5822e9d9..c1fb2bad6d72956f6fce864bc5867dabe7f62bd4 100644 (file)
@@ -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