Commit a9e8765f authored by Thorsten Blum's avatar Thorsten Blum Committed by Ard Biesheuvel
Browse files

efivarfs: use QSTR() in efivarfs_alloc_dentry



Use QSTR() and drop strlen() in efivarfs_alloc_dentry().

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 254f4963
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);