From: Miaohe Lin Date: Tue, 13 Oct 2020 23:52:27 +0000 (-0700) Subject: mm/swapfile.c: remove unnecessary goto out in _swap_info_get() X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7a3d52e45e00dd1cb1f2e81661e53e324e0a7b82;p=uclinux-h8%2Flinux.git mm/swapfile.c: remove unnecessary goto out in _swap_info_get() It's unnecessary to goto the out label while out label is just below. Signed-off-by: Miaohe Lin Signed-off-by: Andrew Morton Reviewed-by: Andrew Morton Link: https://lkml.kernel.org/r/20200930102549.1885-1-linmiaohe@huawei.com Signed-off-by: Linus Torvalds --- diff --git a/mm/swapfile.c b/mm/swapfile.c index d5c19d0baf06..b23090c912f4 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -1184,7 +1184,6 @@ static struct swap_info_struct *_swap_info_get(swp_entry_t entry) bad_free: pr_err("swap_info_get: %s%08lx\n", Unused_offset, entry.val); - goto out; out: return NULL; }