selinux: use QSTR() instead of QSTR_INIT() in init_sel_fs

Drop the length argument and use the simpler QSTR().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Thorsten Blum 2026-04-22 14:31:06 +02:00 committed by Paul Moore
parent 254f49634e
commit 4e3881b0a3

View File

@ -2107,8 +2107,7 @@ struct path selinux_null __ro_after_init;
int __init init_sel_fs(void)
{
struct qstr null_name = QSTR_INIT(NULL_FILE_NAME,
sizeof(NULL_FILE_NAME)-1);
struct qstr null_name = QSTR(NULL_FILE_NAME);
int err;
if (!selinux_enabled_boot)