diff options
author | Anand Jain <anand.jain@oracle.com> | 2024-03-19 17:55:31 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-05-07 22:31:08 +0300 |
commit | 1618aa3c2e0163f5ac34d514ae89474521910536 (patch) | |
tree | d7c08803e72c4a7efa31ab2cea958a345b0aa536 /net/ethtool | |
parent | 6e812a9c656b32d9ec3d71ab58376d3d4f457e06 (diff) | |
download | linux-1618aa3c2e0163f5ac34d514ae89474521910536.tar.xz |
btrfs: simplify return variables in lookup_extent_data_ref()
First, drop err instead reuse ret, choose to return the error instead of
goto fail and then return the same error. Do not initialize the ret
until where it has to be initialized. Slight logic change in handling
the btrfs_search_slot() and btrfs_next_leaf() return value.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'net/ethtool')
0 files changed, 0 insertions, 0 deletions