diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 95c212037095..97970602c3d5 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -3159,8 +3159,6 @@ zeroit: memset(kaddr + pgoff, 1, len); flush_dcache_page(page); kunmap_atomic(kaddr); - if (csum_expected == 0) - return 0; return -EIO; }