diff options
| author | Dan Carpenter <error27@gmail.com> | 2026-04-10 13:10:57 +0300 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-04-18 05:33:17 +0300 |
| commit | 32ba4750dfc6f4139b90fefe59ce8866b2eab56d (patch) | |
| tree | 6b84e2efafe534971fe8e96b5adafaa193859519 | |
| parent | e8b79d09e3121390ebd04591ac1d8c4dea811815 (diff) | |
| download | linux-32ba4750dfc6f4139b90fefe59ce8866b2eab56d.tar.xz | |
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 <error27@gmail.com>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
| -rw-r--r-- | fs/ntfs/file.c | 7 |
1 files changed, 3 insertions, 4 deletions
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: |
