Skip to content

Commit 1990595

Browse files
bbkzzhsiangkao
authored andcommitted
erofs: remove unnecessary goto
It's redundant, let's remove it. Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com> Link: https://lore.kernel.org/r/20230615034539.14286-1-frank.li@vivo.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
1 parent 12d0a24 commit 1990595

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fs/erofs/super.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -954,10 +954,8 @@ static int __init erofs_module_init(void)
954954
sizeof(struct erofs_inode), 0,
955955
SLAB_RECLAIM_ACCOUNT,
956956
erofs_inode_init_once);
957-
if (!erofs_inode_cachep) {
958-
err = -ENOMEM;
959-
goto icache_err;
960-
}
957+
if (!erofs_inode_cachep)
958+
return -ENOMEM;
961959

962960
err = erofs_init_shrinker();
963961
if (err)
@@ -992,7 +990,6 @@ static int __init erofs_module_init(void)
992990
erofs_exit_shrinker();
993991
shrinker_err:
994992
kmem_cache_destroy(erofs_inode_cachep);
995-
icache_err:
996993
return err;
997994
}
998995

0 commit comments

Comments
 (0)