Skip to contentSkip to conversation

hypfs: remove useless variable qname

PATCH New Vitaliy Gusev 1 participant 1 message Jun 15, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hypfs: remove useless variable qname

Local variable 'qname' in the function hypfs_create_file() really is not used for any purpose.

---

arch/s390/hypfs/inode.c +0 -4
index 5a805df..e760b5b 100644
@@ -355,11 +355,7 @@ static struct dentry *hypfs_create_file(struct super_block *sb,
 {
 	struct dentry *dentry;
 	struct inode *inode;
-	struct qstr qname;
 
-	qname.name = name;
-	qname.len = strlen(name);
-	qname.hash = full_name_hash(name, qname.len);
 	mutex_lock(&parent->d_inode->i_mutex);
 	dentry = lookup_one_len(name, parent, strlen(name));
 	if (IS_ERR(dentry)) {