From: Thorsten Blum Date: Wed, 22 Apr 2026 12:25:27 +0000 (+0200) Subject: efivarfs: use QSTR() in efivarfs_alloc_dentry X-Git-Tag: v7.1-rc3~33^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9e8765fd206388d5672db229784982bf559f097;p=thirdparty%2Fkernel%2Fstable.git efivarfs: use QSTR() in efivarfs_alloc_dentry Use QSTR() and drop strlen() in efivarfs_alloc_dentry(). Signed-off-by: Thorsten Blum Signed-off-by: Ard Biesheuvel --- diff --git a/fs/efivarfs/super.c b/fs/efivarfs/super.c index 1c5224cf183e6..733c19571f1cf 100644 --- a/fs/efivarfs/super.c +++ b/fs/efivarfs/super.c @@ -191,13 +191,10 @@ static const struct dentry_operations efivarfs_d_ops = { static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name) { + struct qstr q = QSTR(name); struct dentry *d; - struct qstr q; int err; - q.name = name; - q.len = strlen(name); - err = efivarfs_d_hash(parent, &q); if (err) return ERR_PTR(err);