mirror of https://gitee.com/openkylin/linux.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 <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.kernel.org/r/20200930102549.1885-1-linmiaohe@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
12eab4289d
commit
7a3d52e45e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue