From: Jeff Liu <jeff.liu@oracle.com>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Subject: [PATCH 1/2] vfs: remove unneeded error assignment in fchdir
Date: Fri, 10 Jan 2014 21:37:59 +0800 [thread overview]
Message-ID: <52CFF7B7.2070809@oracle.com> (raw)
From: Jie Liu <jeff.liu@oracle.com>
Get rid of a redundant error re-assignment in chdir(), which is
already initialized to -EBADF before.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
fs/open.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/open.c b/fs/open.c
index 4b3e1ed..327cfb1 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -410,7 +410,6 @@ SYSCALL_DEFINE1(fchdir, unsigned int, fd)
struct inode *inode;
int error = -EBADF;
- error = -EBADF;
if (!f.file)
goto out;
--
1.8.3.2
reply other threads:[~2014-01-10 13:38 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=52CFF7B7.2070809@oracle.com \
--to=jeff.liu@oracle.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@ZenIV.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).