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>
This commit is contained in:
Fabian Frederick 2015-05-15 23:26:28 +02:00 committed by Jan Kara
parent 92acca4542
commit 942d702e71
1 changed files with 0 additions and 2 deletions

View File

@ -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)