[PATCH 1/2] vfs: remove unneeded error assignment in fchdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jie Liu <jeff.liu@xxxxxxxxxx>

Get rid of a redundant error re-assignment in chdir(), which is
already initialized to -EBADF before.

Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux