summaryrefslogtreecommitdiffstats
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
parent92acca45428f28c0b387f85b52b230d526dd0ecc (diff)
downloadlinux-942d702e719607da308c00af1b63804bf88cb030.tar.gz
linux-942d702e719607da308c00af1b63804bf88cb030.tar.bz2
linux-942d702e719607da308c00af1b63804bf88cb030.zip
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>
-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 7a95b8fed302..bddf3d071dae 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)