* [PATCH 1/2] vfs: remove unneeded error assignment in fchdir
@ 2014-01-10 13:37 Jeff Liu
0 siblings, 0 replies; only message in thread
From: Jeff Liu @ 2014-01-10 13:37 UTC (permalink / raw)
To: Al Viro; +Cc: linux-fsdevel@vger.kernel.org
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-10 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-10 13:37 [PATCH 1/2] vfs: remove unneeded error assignment in fchdir Jeff Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.