]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: simplify gotos in open_seed_device
authorAnand Jain <anand.jain@oracle.com>
Fri, 4 Sep 2020 17:34:35 +0000 (01:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:12:22 +0000 (12:12 +0200)
commit0e0e8450bd05c94a17447f2e551a86b91ab5cef2
tree04e30258deafe64617b9f90989be4f10d6d452c0
parent5b218efb77304548a0e4260d2c73020b63ab3341
btrfs: simplify gotos in open_seed_device

The function does not have a common exit block and returns immediatelly
so there's no point having the goto. Remove the two cases.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c