summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-04-22 14:25:27 +0200
committerArd Biesheuvel <ardb@kernel.org>2026-04-28 12:30:59 +0200
commita9e8765fd206388d5672db229784982bf559f097 (patch)
treeee24843f74f18cecfe9cfb71f685715996b29ff4 /fs
parent254f49634ee16a731174d2ae34bc50bd5f45e731 (diff)
efivarfs: use QSTR() in efivarfs_alloc_dentry
Use QSTR() and drop strlen() in efivarfs_alloc_dentry(). Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/efivarfs/super.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/efivarfs/super.c b/fs/efivarfs/super.c
index 1c5224cf183e..733c19571f1c 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);