diff options
| author | Qu Wenruo <[email protected]> | 2022-02-22 07:41:20 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-03-14 12:13:53 +0000 |
| commit | 9a4ffa1bd629c7c55a1238c65e58fe0ce9c12d08 (patch) | |
| tree | b5bd70802000d419c8d24a804eb216aa763ac2ca /lib/mpi/mpi-bit.c | |
| parent | btrfs: unify the error handling pattern for read_tree_block() (diff) | |
| download | kernel-9a4ffa1bd629c7c55a1238c65e58fe0ce9c12d08.tar.gz kernel-9a4ffa1bd629c7c55a1238c65e58fe0ce9c12d08.zip | |
btrfs: unify the error handling of btrfs_read_buffer()
There is one oddball error handling of btrfs_read_buffer():
ret = btrfs_read_buffer(tmp, gen, parent_level - 1, &first_key);
if (!ret) {
*eb_ret = tmp;
return 0;
}
free_extent_buffer(tmp);
btrfs_release_path(p);
return -EIO;
While all other call sites check the error first. Unify the behavior.
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
