diff options
author | 2019-10-18 11:58:23 +0200 | |
---|---|---|
committer | 2019-11-18 12:47:01 +0100 | |
commit | 32ab3d1b4d0c55daea9ba52c0f5d1363be21bf2a (patch) | |
tree | 0e3739445c1ca5fef1849f520c9a454815634f44 /tools/perf/scripts/python/check-perf-trace.py | |
parent | btrfs: reduce indentation in btrfs_may_alloc_data_chunk (diff) | |
download | linux-dev-32ab3d1b4d0c55daea9ba52c0f5d1363be21bf2a.tar.xz linux-dev-32ab3d1b4d0c55daea9ba52c0f5d1363be21bf2a.zip |
btrfs: remove pointless indentation in btrfs_read_sys_array()
Instead of checking if we've read a BTRFS_CHUNK_ITEM_KEY from disk and
then process it we could just bail out early if the read disk key wasn't
a BTRFS_CHUNK_ITEM_KEY.
This removes a level of indentation and makes the code nicer to read.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions