From: Jingbo Xu <jefflexu@linux.alibaba.com>
To: Yangtao Li <frank.li@vivo.com>, Gao Xiang <xiang@kernel.org>,
Chao Yu <chao@kernel.org>, Yue Hu <huyue2@coolpad.com>
Cc: linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] erofs: remove unnecessary goto
Date: Thu, 15 Jun 2023 12:20:37 +0800 [thread overview]
Message-ID: <62aa21a7-283a-4860-2a0a-b23ed38e6424@linux.alibaba.com> (raw)
In-Reply-To: <20230615034539.14286-1-frank.li@vivo.com>
On 6/15/23 11:45 AM, Yangtao Li wrote:
> It's redundant, let's remove it.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
> ---
> 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 811ab66d805e..f48ce692094d 100644
> --- a/fs/erofs/super.c
> +++ b/fs/erofs/super.c
> @@ -1016,10 +1016,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)
> @@ -1054,7 +1052,6 @@ static int __init erofs_module_init(void)
> erofs_exit_shrinker();
> shrinker_err:
> kmem_cache_destroy(erofs_inode_cachep);
> -icache_err:
> return err;
> }
>
--
Thanks,
Jingbo
prev parent reply other threads:[~2023-06-15 4:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 3:45 Yangtao Li
2023-06-15 4:01 ` Gao Xiang
2023-06-15 4:20 ` Jingbo Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62aa21a7-283a-4860-2a0a-b23ed38e6424@linux.alibaba.com \
--to=jefflexu@linux.alibaba.com \
--cc=chao@kernel.org \
--cc=frank.li@vivo.com \
--cc=huyue2@coolpad.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xiang@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®