btrfs: remove pointless indentation in btrfs_read_sys_array()
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 18 Oct 2019 09:58:23 +0000 (11:58 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:47:01 +0000 (12:47 +0100)
commit32ab3d1b4d0c55daea9ba52c0f5d1363be21bf2a
tree0e3739445c1ca5fef1849f520c9a454815634f44
parent5ae216929069507efce3caff6f5618ec919cad11
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>
fs/btrfs/volumes.c