diff options
author | Nikolay Borisov <nborisov@suse.com> | 2019-03-18 17:45:18 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:22 +0200 |
commit | d51f51bb6f3c11f3ee4120c35de8e6547ed493fc (patch) | |
tree | 999598d357d1384f6028aabfe52f56d27e7c2345 /fs/btrfs/extent_io.c | |
parent | e65ef21ed850a535defa2ead971fc8f88ad3b616 (diff) | |
download | linux-d51f51bb6f3c11f3ee4120c35de8e6547ed493fc.tar.bz2 |
btrfs: Remove unused -EIO assignment in end_bio_extent_readpage
In case we hit the error case for a metadata buffer in
end_bio_extent_readpage then 'ret' won't really be checked before it's
written again to. This means the -EIO in this case will never be
checked, just remove it.
Fixes-coverity-id: 1442513
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 9901e8127e0f..d0b8ed2c2631 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2614,8 +2614,6 @@ static void end_bio_extent_readpage(struct bio *bio) if (test_and_clear_bit(EXTENT_BUFFER_READAHEAD, &eb->bflags)) btree_readahead_hook(eb, -EIO); - - ret = -EIO; } readpage_ok: if (likely(uptodate)) { |