Skip to content

Commit 32ba475

Browse files
error27namjaejeon
authored andcommitted
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>
1 parent e8b79d0 commit 32ba475

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

fs/ntfs/file.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,9 @@ static ssize_t ntfs_dio_write_iter(struct kiocb *iocb, struct iov_iter *from)
525525
ret = -EIO;
526526
goto out;
527527
}
528-
if (!ret2)
529-
invalidate_mapping_pages(iocb->ki_filp->f_mapping,
530-
offset >> PAGE_SHIFT,
531-
end >> PAGE_SHIFT);
528+
invalidate_mapping_pages(iocb->ki_filp->f_mapping,
529+
offset >> PAGE_SHIFT,
530+
end >> PAGE_SHIFT);
532531
}
533532

534533
out:

0 commit comments

Comments
 (0)