[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1535021828-130439-1-git-send-email-swkhack@gmail.com>
Date: Thu, 23 Aug 2018 03:57:08 -0700
From: Weikang Shi <swkhack@...il.com>
To: dhowells@...hat.com
Cc: linux-afs@...ts.infradead.org, linux-kernel@...r.kernel.org,
swkhack@...com, Weikang Shi <swkhack@...il.com>
Subject: [PATCH] fs: Eliminate redundant assignments
after the assignments statement ,all return statement do not use ret variable,so delete the assignments.
Signed-off-by: Weikang Shi <swkhack@...il.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
Powered by blists - more mailing lists