OSDN Git Service

mm/swapfile.c: remove unnecessary goto out in _swap_info_get()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 13 Oct 2020 23:52:27 +0000 (16:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 14 Oct 2020 01:38:30 +0000 (18:38 -0700)
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>
mm/swapfile.c

index d5c19d0..b23090c 100644 (file)
@@ -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;
 }