summaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-05-15 23:26:28 +0200
committerJan Kara <jack@suse.cz>2015-05-18 11:23:09 +0200
commit942d702e719607da308c00af1b63804bf88cb030 (patch)
treeb11938035c819c0360d83a72adbd862978606e65 /fs/udf
parent92acca45428f28c0b387f85b52b230d526dd0ecc (diff)
downloadop-kernel-dev-942d702e719607da308c00af1b63804bf88cb030.zip
op-kernel-dev-942d702e719607da308c00af1b63804bf88cb030.tar.gz
udf: remove double err declaration in udf_file_write_iter()
Use first err declaration for generic_write_sync() return value. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/udf/file.c b/fs/udf/file.c
index 7a95b8f..bddf3d0 100644
--- a/fs/udf/file.c
+++ b/fs/udf/file.c
@@ -152,8 +152,6 @@ out:
mutex_unlock(&inode->i_mutex);
if (retval > 0) {
- ssize_t err;
-
mark_inode_dirty(inode);
err = generic_write_sync(file, iocb->ki_pos - retval, retval);
if (err < 0)
OpenPOWER on IntegriCloud