Skip to content

Commit

Permalink
udf: remove double err declaration in udf_file_write_iter()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabian Frederick authored and Jan Kara committed May 18, 2015
1 parent 92acca4 commit 942d702
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/udf/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ static ssize_t udf_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
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)
Expand Down

0 comments on commit 942d702

Please sign in to comment.