mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs: Eliminate redundant assignments
@ 2018-08-23 10:57 Weikang Shi
  0 siblings, 0 replies; only message in thread
From: Weikang Shi @ 2018-08-23 10:57 UTC (permalink / raw)
  To: dhowells; +Cc: linux-afs, linux-kernel, swkhack, Weikang Shi

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-23 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-23 10:57 [PATCH] fs: Eliminate redundant assignments Weikang Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®