]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: dev stat drop useless goto
authorAnand Jain <anand.jain@oracle.com>
Wed, 21 Aug 2019 09:26:32 +0000 (17:26 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:12 +0000 (14:59 +0200)
commitab6507ff5eed4773d0e78d3c74c83cc41fef55b4
tree1ab1569f9167e8421e09138834aec6bd615b4f3a
parent5e0bfc71e557cdfe739d50ec04f6d32948fb4f1f
btrfs: dev stat drop useless goto

In the function btrfs_init_dev_stats() goto out is not needed, because the
alloc has failed. So just return -ENOMEM.

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