[PATCH] fs: Eliminate redundant assignments
From: Weikang Shi
Date: Thu Aug 23 2018 - 06:57:18 EST
after the assignments statement ,all return statement do not use ret variable,so delete the assignments.
Signed-off-by: Weikang Shi <swkhack@xxxxxxxxx>
---
fs/afs/dir.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index 855bf2b..5a3770a 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -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;
--
2.7.4