lkml.org 
[lkml]   [2018]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fs: Eliminate redundant assignments
Date
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
\
 
 \ /
  Last update: 2018-08-23 12:59    [W:0.021 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site