btrfs: avoid reusing return variable in nested block in btrfs_lookup_bio_sums
authorAnand Jain <anand.jain@oracle.com>
Fri, 10 Feb 2023 16:15:54 +0000 (00:15 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:13 +0000 (18:01 +0200)
commitda8269a3e9edb8c57cd5448e07a5157872ddd143
treec242a78564c752b9548503d699f74f8ef42d980a
parentfa13661c48debbfb0a749e9328ea5648cf18fab4
btrfs: avoid reusing return variable in nested block in btrfs_lookup_bio_sums

The function btrfs_lookup_bio_sums() and a nested if statement declare
ret respectively as blk_status_t and int.

There is no need to store the return value of
search_file_offset_in_bio() to ret as this is a one-time call.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file-item.c