]> asedeno.scripts.mit.edu Git - linux.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)
commit3b80a984d2283e6f1dc59571e5aadc36eadac939
tree1ab1569f9167e8421e09138834aec6bd615b4f3a
parent440630ea7c37d0f785aca4122ac9272d01ee36db
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