mirror of
https://github.com/torvalds/linux.git
synced 2025-11-01 09:09:47 +02:00
btrfs: simplify return logic from btrfs_delayed_ref_init()
Make this simpler by returning directly when there's no other cleanup needed. Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c900f415be
commit
ea2a8bacb1
1 changed files with 1 additions and 1 deletions
|
|
@ -1336,7 +1336,7 @@ int __init btrfs_delayed_ref_init(void)
|
|||
{
|
||||
btrfs_delayed_ref_head_cachep = KMEM_CACHE(btrfs_delayed_ref_head, 0);
|
||||
if (!btrfs_delayed_ref_head_cachep)
|
||||
goto fail;
|
||||
return -ENOMEM;
|
||||
|
||||
btrfs_delayed_ref_node_cachep = KMEM_CACHE(btrfs_delayed_ref_node, 0);
|
||||
if (!btrfs_delayed_ref_node_cachep)
|
||||
|
|
|
|||
Loading…
Reference in a new issue