From: Fabian Frederick Date: Fri, 15 May 2015 21:26:28 +0000 (+0200) Subject: udf: remove double err declaration in udf_file_write_iter() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=942d702e719607da308c00af1b63804bf88cb030;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jan Kara --- 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)