aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-div.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2022-09-09 17:53:34 -0400
committerDavid Sterba <[email protected]>2022-09-26 12:28:04 +0200
commitaa852dabf9646cb2517e3e7d7d9077201938a6d3 (patch)
treef5dc9128b4294b367f3e5da9883e9d8eeaccad26 /lib/mpi/mpi-div.c
parentccaeff929098dcad1661d0e4d524e569bac949be (diff)
btrfs: make tree_search return struct extent_state
We have a consistent pattern of n = tree_search(); if (!n) goto out; state = rb_entry(n, struct extent_state, rb_node); while (state) { /* do something. */ } which is a bit redundant. If we make tree_search return the state we can simply have state = tree_search(); while (state) { /* do something. */ } which cleans up the code quite a bit. Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions