fs: remove unnecessary setting of error
PATCH 1/1 fs: remove unnecessary setting of error
setting error to -EINVAL is unnecessary. It is already set, above.
Signed-off-by Salah Triki <[email protected]>
--- fs/open.c | 1 - 1 file changed, 1 deletion(-)
fs/open.c +0 -1
@@ -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;
Signature · 1 line
1.9.1