From: Weikang Shi <swkhack@gmail.com>
To: dhowells@redhat.com
Cc: linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org,
swkhack@qq.com, Weikang Shi <swkhack@gmail.com>
Subject: [PATCH] fs: Eliminate redundant assignments
Date: Thu, 23 Aug 2018 03:57:08 -0700 [thread overview]
Message-ID: <1535021828-130439-1-git-send-email-swkhack@gmail.com> (raw)
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
reply other threads:[~2018-08-23 10:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1535021828-130439-1-git-send-email-swkhack@gmail.com \
--to=swkhack@gmail.com \
--cc=dhowells@redhat.com \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=swkhack@qq.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®