Commit 32ba4750 authored by Dan Carpenter's avatar Dan Carpenter Committed by Namjae Jeon
Browse files

ntfs: delete dead code



We know "ret2" is zero so there is no need to check.  Delete the
if statement.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarHyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent e8b79d09
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -525,7 +525,6 @@ static ssize_t ntfs_dio_write_iter(struct kiocb *iocb, struct iov_iter *from)
			ret = -EIO;
			goto out;
		}
		if (!ret2)
		invalidate_mapping_pages(iocb->ki_filp->f_mapping,
					 offset >> PAGE_SHIFT,
					 end >> PAGE_SHIFT);