From 1990595547976baa922285b999612cc3549874d6 Mon Sep 17 00:00:00 2001 From: Yangtao Li Date: Thu, 15 Jun 2023 11:45:38 +0800 Subject: [PATCH] erofs: remove unnecessary goto It's redundant, let's remove it. Signed-off-by: Yangtao Li Reviewed-by: Gao Xiang Reviewed-by: Jingbo Xu Link: https://lore.kernel.org/r/20230615034539.14286-1-frank.li@vivo.com Signed-off-by: Gao Xiang --- fs/erofs/super.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/erofs/super.c b/fs/erofs/super.c index c2829c91812b..ff18f6b14de5 100644 --- a/fs/erofs/super.c +++ b/fs/erofs/super.c @@ -954,10 +954,8 @@ static int __init erofs_module_init(void) sizeof(struct erofs_inode), 0, SLAB_RECLAIM_ACCOUNT, erofs_inode_init_once); - if (!erofs_inode_cachep) { - err = -ENOMEM; - goto icache_err; - } + if (!erofs_inode_cachep) + return -ENOMEM; err = erofs_init_shrinker(); if (err) @@ -992,7 +990,6 @@ static int __init erofs_module_init(void) erofs_exit_shrinker(); shrinker_err: kmem_cache_destroy(erofs_inode_cachep); -icache_err: return err; }