Message ID | 20230615034539.14286-1-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp381804vqr; Wed, 14 Jun 2023 21:06:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4lzil9eRL2YiANk88vPDICM/IB9kVaJZv0egiyM2gmjxlJPuhjVQ0iGnXShd71gRcRaQEm X-Received: by 2002:a17:907:1629:b0:96a:fd8a:f840 with SMTP id hb41-20020a170907162900b0096afd8af840mr19045867ejc.49.1686801961008; Wed, 14 Jun 2023 21:06:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686801960; cv=pass; d=google.com; s=arc-20160816; b=y6LaoI40IHWzmDGnQTpkGRK/k0XdQsFui28nwl7MHBN/HupZ6/W3lgbNDn2Mn4HzUC FYOzMGv2PAnHK/fT49gJSzjLzdFF7z5UO3uvoMv8cYRo0zuuNt5NAUBUWGmPorO9Vivh kz7Xsw1iVuOG5kjZM+GHAzpatl8nGRj3Is1EwIP/GlpZny6GaN18loxedFeovOo+2CXk sXUMo5Q0bkQBDEGJyKY5RbGSGI7OLJ2tC44g4QeHCd8j+OU7nCg8i4x3M+CNUxkI1nJ/ H74dReXAuyqVQ1i7dnz/+IPpFab5uidr3lDvkzc/bYvR0nD30rYcNEOAGnhxxyBGgkzT Or8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=/nLzuJjX7sBndncqWaTh2UYef7txZXPPz4N9YbqHyaU=; b=hPudMFib22SEMLJs0MponhstvdEe2Hvgk8tcn5T1WLAFVqk3xerIZcvNcacxkZvp4V B+NicZEgWktb/3H0VvQyoQv6yBSfIArzS4qOe3bQ1yHPgUvuipZk8Gh1g5vRX6rz10b3 fmqMEA7PrUdHPdfKPIbO1pd4EG7YlNK+l/D3N8wTrfsbvptv+5VsrDDKNrHUabXUpLRG p8wbvkwPQWZf94ZzlrZdfs+LZ8bdHrTuRRzvUIZ3anSEf7ikeLE7Ui1gHmWUMF9UTi5k M2cEMWYVkM8eqwc1znv4W6Vg2PnIl4HYTuwxjUYJI0BQC+mvjCgFckY7tSvJZwSfrg6x 820w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=DqIhhAOl; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a22-20020a170906275600b00965ab5999c6si6166109ejd.93.2023.06.14.21.05.36; Wed, 14 Jun 2023 21:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=DqIhhAOl; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237447AbjFODqI (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Wed, 14 Jun 2023 23:46:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbjFODqG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Jun 2023 23:46:06 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2118.outbound.protection.outlook.com [40.107.215.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D2BF191 for <linux-kernel@vger.kernel.org>; Wed, 14 Jun 2023 20:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W0OOn8CF7bulV+NvkaT+8kD8G5o7hS9KUPV31ws+vB3X7OzuPw3BmvH9uAjVwDSyl9ZgACbwA2hlgRgFOpvYlfvb5j4HrbsJ6nhDca9ttlZ/tUT0rVSAFsipeP/p+bBGAFFiHpC3O+6FqH0tX6IkIlK303PPA2wsvFn9cYMvHfMlxG8lDYJcWENUu5KKOJxcIS6eysXPhd56bVnbmf7wXODsltPGPOCjmySmSCuVkXQPEldmJ3gJ4XJxYUMy0P/UfiS83gJdjshIoAEm/S92q3LOonrc9uAXL5lsm8scREUcBdoEe6GPhwQWdu+KV1JZSkm0b5XHnkzGYBbN5cXtYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/nLzuJjX7sBndncqWaTh2UYef7txZXPPz4N9YbqHyaU=; b=QO9pd5JPR4uKEhxH0gmzX02ENP3+sj9pPWqw5qzoa5gH75T3Y0t9vtZbNneD08OMerKhCa8K1BdGDeIVmKNqJhRVAZhZJOI211dT5C3HcDsHDHTKfMo0lY4+Td22RDHliMqohWKcmTWVI+Il1LC4x+2eiXb2S+e3V/xrqOM28/Bq55eIpG4STTQOdQeoziOjiEI3pcISjPuvGuDVQjtXFlTfvvIuBAzAyT5OXBPdhX7cpltBarxdcLsxV9PYMKFCaqcWb9Is1lTCnGCFpLCSaQUlK3Wyg/XTgSwFPki56rJ5sPSdeeoFHUM6De0u2ZvwjZ2NX41Plhes/6KvIvIt2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/nLzuJjX7sBndncqWaTh2UYef7txZXPPz4N9YbqHyaU=; b=DqIhhAOl/W5JCwO5DG/BW3MBf3xR7rhMLbMTIuX/pQuesD7busL6d4AFqXvhfTpPBaLhhrnta/Y+3hG3DGRnb8Hw4ldIY0ZTeHE3qDEJ/du/EQwMqGToJXhG7CQZKXikx7JswAX7lZ3nwZ2PzNpg3Lt8ugC5+z+TxjqNpcS3wUQ8N/nJ/eMXv88pVR19DK8mKlebX5e9DJVJHx0qgTilf4UzlV8WLy8cvCkWdb+d/WXw/hut+DPi6rENQ/HEqhdgKxLNIJeI4SMS/OmWqWS2mJe0NMuztm70Q/amucvJFQ4JNf1u5MjQ7esY+sCAmw4KN0NC4+T3FLg2UVNfi6ae9w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by PSAPR06MB4534.apcprd06.prod.outlook.com (2603:1096:301:7a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.37; Thu, 15 Jun 2023 03:45:57 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%4]) with mapi id 15.20.6500.025; Thu, 15 Jun 2023 03:45:57 +0000 From: Yangtao Li <frank.li@vivo.com> To: Gao Xiang <xiang@kernel.org>, Chao Yu <chao@kernel.org>, Yue Hu <huyue2@coolpad.com>, Jeffle Xu <jefflexu@linux.alibaba.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] erofs: remove unnecessary goto Date: Thu, 15 Jun 2023 11:45:38 +0800 Message-Id: <20230615034539.14286-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGXP274CA0009.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PSAPR06MB4534:EE_ X-MS-Office365-Filtering-Correlation-Id: a58ca942-8b5b-4361-a940-08db6d53068f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L45+LmTF/vvhqYxlZY5FNHzZ48D2xCpuxLfHLkkU5SLcI1DNn9HZbVSeODxN3jRndUyUb+leZ6aSZfTbVUnyyZjFoifZPXMNQYN5hfAnMnun5cqi8zwocsMlPkmCqNDYub7E5Fy/3RDjIjgfOtFkoaeTstsSW/NNM2bvpC4wq8idwZLjZ4gx0urmjI3ZDNy8Gaj5sDJ0moDmnUQlqm6HWr8MgkabBhky2cIwFebqQBAZnPuRQZRWdRWd5mdb9h9t9NajcWbv+nXslDJ6rwqiaCvlSSqAku2X8d94Wwe6IK8PywP705JSOV+kHpERmelILpKQG9447NHUr7EJHzAvO6PnX5U1S8zrjwmANg478nY2XgdE49l6RCwukdx/53oxXNcpPMng8DLJQnAGB4IXBtc2KMQMrb7Y+hHAG19jAhEHLBNEAKHnIz4ND089Mt25X25Frwos1lYpDjUrvISVezEFK8elI0kAi9LuWEc9u1Ov0JbkeUtZgHyCazWDwODYkD/z1RKfbvVUFHNmf5F8s2FrCDAfJvVtL0vhZyfMnsgjCF/IhaybQkz4HZJb10KAdACgvWzyQD678+LG6ITDB5KO6THyDs/Lj6mg0IV6j+AyE2jpdXGzXFew32ZxupjY X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(39860400002)(346002)(366004)(396003)(136003)(451199021)(38350700002)(38100700002)(478600001)(6666004)(110136005)(52116002)(6486002)(316002)(41300700001)(5660300002)(8936002)(8676002)(66476007)(66946007)(2906002)(66556008)(4326008)(4744005)(83380400001)(6512007)(26005)(186003)(1076003)(6506007)(2616005)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ztc4Aa6zc19EWDYsvz3aT5rURQg1yLIQBb+DzQRiSTKdyp/zbQXwQ3dkLqctYRRXZ4R6iBb8arhpBHNzLf5ZvnS5ZyCDjuh2ZhHs0LyrBUkpo/oghFukS+1L5YniC4bYB5YXWadZxPY6beGiQbbolECXfa7FvkP172xiH/+FEUCtWcaky/4e7t6005hc6Xem46txsrKMxJ+a5b7f8Y+oQCy9adu9rCl/ojulslJSmve0R9CwSNZiurbmNSBE566cVO2IJZq07XRPC9x/Bn5DKFN0U5m0kI3fn2uXchRacG+v9yHU9Fmk2IZStbjXM59SSseuhTgxDaaOQ0+IJ8HRiOJFHr9IjuvM7Kcy+lTbgx+gvfUiqj4MaNZnmae4qJns7IXWUgHurFhRTNNEIPUOJ0hbK9WcxKFEVig+9Z3HbGS/Cjf0E0V0PEQHJNeTQMHOvoITHw43yh2bCqYQVLWbOWCF2kWcbjVDFcPtxHT5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drwZM49uFf1P2YU97GD5OMpDgA+CI01DPEBcGPrNcR9L X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a58ca942-8b5b-4361-a940-08db6d53068f X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2023 03:45:56.5936 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bVFiI0/BgfPd5cJpjb3lAI477aMhmLdk2HZ/bjuzHAMrUDzKkeyrHTnlsKWDmYdGDKmVqo0aXu+1lyreHyLQyQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4534 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768740053411276666?= X-GMAIL-MSGID: =?utf-8?q?1768740053411276666?= |
Series |
erofs: remove unnecessary goto
|
|
Commit Message
李扬韬
June 15, 2023, 3:45 a.m. UTC
It's redundant, let's remove it.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
fs/erofs/super.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
Comments
On 2023/6/15 11:45, Yangtao Li wrote: > It's redundant, let's remove it. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Thanks, Gao Xiang
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; > } >
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; }