Skip to contentSkip to conversation

fs: Eliminate redundant assignments

PATCH New Weikang Shi 1 participant 1 message Aug 23, 2018 Afs filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: Eliminate redundant assignments

after the assignments statement ,all return statement do not use ret variable,so delete the assignments.

---
 fs/afs/dir.c | 1 -
 1 file changed, 1 deletion(-)
fs/afs/dir.c +0 -1
index 855bf2b..5a3770a 100644
@@ -541,7 +541,6 @@ static int afs_do_lookup_one(struct inode *dir, struct dentry *dentry,
 		return ret;
 	}
 
-	ret = -ENOENT;
 	if (!cookie.found) {
 		_leave(" = -ENOENT [not found]");
 		return -ENOENT;
Signature · 1 line
2.7.4