From: Dan Carpenter Date: Fri, 10 Apr 2026 10:10:57 +0000 (+0300) Subject: ntfs: delete dead code X-Git-Tag: v7.1-rc1~14^2~4 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=32ba4750dfc6f4139b90fefe59ce8866b2eab56d;p=thirdparty%2Fkernel%2Flinux.git ntfs: delete dead code We know "ret2" is zero so there is no need to check. Delete the if statement. Signed-off-by: Dan Carpenter Reviewed-by: Hyunchul Lee Signed-off-by: Namjae Jeon --- diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index 34003fa07dd1..ffd753740fcf 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c @@ -525,10 +525,9 @@ 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); + invalidate_mapping_pages(iocb->ki_filp->f_mapping, + offset >> PAGE_SHIFT, + end >> PAGE_SHIFT); } out: