From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 073D4C4727F for ; Wed, 30 Sep 2020 10:27:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6E7092075F for ; Wed, 30 Sep 2020 10:27:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E7092075F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AC37A6B005C; Wed, 30 Sep 2020 06:27:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A72246B005D; Wed, 30 Sep 2020 06:27:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 987718E0001; Wed, 30 Sep 2020 06:27:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0164.hostedemail.com [216.40.44.164]) by kanga.kvack.org (Postfix) with ESMTP id 7FF116B005C for ; Wed, 30 Sep 2020 06:27:23 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 3F1FB181AE860 for ; Wed, 30 Sep 2020 10:27:23 +0000 (UTC) X-FDA: 77319350766.12.toad38_270cfb627192 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id 13D761800EC5B for ; Wed, 30 Sep 2020 10:27:23 +0000 (UTC) X-HE-Tag: toad38_270cfb627192 X-Filterd-Recvd-Size: 1557 Received: from huawei.com (szxga06-in.huawei.com [45.249.212.32]) by imf22.hostedemail.com (Postfix) with ESMTP for ; Wed, 30 Sep 2020 10:27:22 +0000 (UTC) Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id EFE85B41C90E64366BA9; Wed, 30 Sep 2020 18:27:17 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Wed, 30 Sep 2020 18:27:12 +0800 From: Miaohe Lin To: CC: , , Subject: [PATCH] mm: Remove unnecessary goto out in _swap_info_get() Date: Wed, 30 Sep 2020 06:25:49 -0400 Message-ID: <20200930102549.1885-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: It's unnecessary to goto the out label while out label is just below. Signed-off-by: Miaohe Lin --- mm/swapfile.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/swapfile.c b/mm/swapfile.c index 4522b458a814..edc96e83c372 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -1182,7 +1182,6 @@ static struct swap_info_struct *_swap_info_get(swp_= entry_t entry) =20 bad_free: pr_err("swap_info_get: %s%08lx\n", Unused_offset, entry.val); - goto out; out: return NULL; } --=20 2.19.1