Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dan Carpenter and committed by
Namjae Jeon
32ba4750 e8b79d09

+3 -4
+3 -4
fs/ntfs/file.c
··· 525 525 ret = -EIO; 526 526 goto out; 527 527 } 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); 532 531 } 533 532 534 533 out: