udf: remove double err declaration in udf_file_write_iter()
authorFabian Frederick <fabf@skynet.be>
Fri, 15 May 2015 21:26:28 +0000 (23:26 +0200)
committerJan Kara <jack@suse.cz>
Mon, 18 May 2015 09:23:09 +0000 (11:23 +0200)
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>
fs/udf/file.c

index 7a95b8fed302daa3321915f555ba70cd5fcfd9a4..bddf3d071daec536fe5a3e775b2e041e0df5a620 100644 (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)