[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1470988622-7178-1-git-send-email-salah.triki@gmail.com>
Date: Fri, 12 Aug 2016 08:57:02 +0100
From: Salah Triki <salah.triki@...il.com>
To: viro@...iv.linux.org.uk
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
salah.triki@...il.com
Subject: [PATCH] fs: remove unnecessary setting of error
setting error to -EINVAL is unnecessary. It is already set, above.
Signed-off-by: Salah Triki <salah.triki@...il.com>
---
fs/open.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/open.c b/fs/open.c
index 4fd6e25..b438edc 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -176,7 +176,6 @@ static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
if (!S_ISREG(inode->i_mode) || !(f.file->f_mode & FMODE_WRITE))
goto out_putf;
- error = -EINVAL;
/* Cannot ftruncate over 2^31 bytes without large file support */
if (small && length > MAX_NON_LFS)
goto out_putf;
--
1.9.1
Powered by blists - more mailing lists