mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
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>
This commit is contained in:
parent
e65ef21ed8
commit
d51f51bb6f
1 changed files with 0 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue