summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2019-10-18 11:58:23 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:47:01 +0100
commit32ab3d1b4d0c55daea9ba52c0f5d1363be21bf2a (patch)
tree0e3739445c1ca5fef1849f520c9a454815634f44 /fs/btrfs/inode.c
parent5ae216929069507efce3caff6f5618ec919cad11 (diff)
downloadlinux-32ab3d1b4d0c55daea9ba52c0f5d1363be21bf2a.tar.bz2
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 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions