Messages in this thread Patch in this message | | | From | Weikang Shi <> | Subject | [PATCH] fs: Eliminate redundant assignments | Date | Thu, 23 Aug 2018 03:57:08 -0700 |
| |
after the assignments statement ,all return statement do not use ret variable,so delete the assignments.
Signed-off-by: Weikang Shi <swkhack@gmail.com> --- 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
| |