Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3366567ioa; Tue, 26 Apr 2022 02:04:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1CnPjXRwA33S6dqu4KnOe5NCYhZhVxi1zl5FOE3vkSqwBWJFBr37ijlpYPXXePNHqN9L7 X-Received: by 2002:a17:90b:1bc4:b0:1d9:b267:cd6b with SMTP id oa4-20020a17090b1bc400b001d9b267cd6bmr1838554pjb.149.1650963849920; Tue, 26 Apr 2022 02:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650963849; cv=none; d=google.com; s=arc-20160816; b=uLGM8N0qyLEB7eY5P7s7RL7kT9TCFejrVUtvDeJVvNucLbg5iTvuGJj1zFv2BISxDr woGXKj7EpD8xld3Q1ksnBcFAFwMlNPHAdvpbDTiEvFOqpYSXy8RlOb+5I7f6gODEX/4G vPKEDBzXgW0HPkBDe1tUs8UUZVGeT4E1JBBSLPe5OjPzjkY9shJ1UmjtWkAE5jP1eRHY AGU/FdBWcweCptWrs/KOwdjKQLOVDXt8e5p8ApNNoovVfAQBJ6rR/Fkh9c5PKFwkh2tS eAtYGF3LWo8e42Is86dyds2lZA8L+6KwrWD51dnyVbC1jK4KGm/Di36NsToubZM1OMjo Bg/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:mime-version :content-transfer-encoding:content-id:content-language :accept-language:in-reply-to:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:dkim-filter; bh=CsbcO+p6CiS6d9aB1oojSVgJ8bcRlB7m2SpwxFhLZ+w=; b=qlWuINlqBQHav4G2wgPMF85EXkaNRZbZlYx2V3Y+KzQi7Qm0X6GYhTvKyzH/G9u10v n7JlralOekHiX18fz1nXpkOiHwGBPP0VWevPU9yx4yDgYtV2DPQNl/Xo116TU2Zt99jg jdxWOE0w287PVCth10z9i6ZKF8mzv9TZuBP17Tz6E+WjuxISRCveCz3AkuS0oI5+4F/T 7gIXfIMEaoaxe0eGRgjzwkDZDOYk+MDlqXtdSwM3BoAC3d+ExEc0mumGo/+mVDQrI+rs /jeZiq7RitKapAQQXIILutOJFXzvU1iWVO0poUd0dwbd4X3mXXXXdw8yCL8WVfVjW+uN Vy+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Ms79yjqZ; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my12-20020a17090b4c8c00b001d9b225ad14si1059864pjb.170.2022.04.26.02.03.55; Tue, 26 Apr 2022 02:04:09 -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=@samsung.com header.s=mail20170921 header.b=Ms79yjqZ; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233214AbiDYWj7 (ORCPT + 99 others); Mon, 25 Apr 2022 18:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbiDYWj5 (ORCPT ); Mon, 25 Apr 2022 18:39:57 -0400 Received: from mailout1.w2.samsung.com (mailout1.w2.samsung.com [211.189.100.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B77901EEF4 for ; Mon, 25 Apr 2022 15:36:50 -0700 (PDT) Received: from uscas1p1.samsung.com (unknown [182.198.245.206]) by mailout1.w2.samsung.com (KnoxPortal) with ESMTP id 20220425223059usoutp0180058bb5497758d6c96c67edfaeb449d~pRFJzJZg42449424494usoutp01e; Mon, 25 Apr 2022 22:30:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w2.samsung.com 20220425223059usoutp0180058bb5497758d6c96c67edfaeb449d~pRFJzJZg42449424494usoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1650925859; bh=CsbcO+p6CiS6d9aB1oojSVgJ8bcRlB7m2SpwxFhLZ+w=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=Ms79yjqZu0Z9XqSv/uUS/GzzP/ZoH5OTirpEAK1paMBNSHKJFP3ZAI5HX6pbXN6JN 0by9ULy74aKV7itzxlI6UGHi89IYU60YMCDfm/k68VBWSq1CeSRNO489bcXDxyytkE mXK824lnFmaweU8IGQrJegX5Ie+RSnzSgXQojl90= Received: from ussmges3new.samsung.com (u112.gpu85.samsung.co.kr [203.254.195.112]) by uscas1p1.samsung.com (KnoxPortal) with ESMTP id 20220425223058uscas1p1bcbfe155435028c3a9a27c76b3e25c6d~pRFJbb5gs1749317493uscas1p1a; Mon, 25 Apr 2022 22:30:58 +0000 (GMT) Received: from uscas1p1.samsung.com ( [182.198.245.206]) by ussmges3new.samsung.com (USCPEMTA) with SMTP id 3F.6F.09749.22127626; Mon, 25 Apr 2022 18:30:58 -0400 (EDT) Received: from ussmgxs1new.samsung.com (u89.gpu85.samsung.co.kr [203.254.195.89]) by uscas1p1.samsung.com (KnoxPortal) with ESMTP id 20220425223058uscas1p10722f66722de23c644f8330da82fe1da~pRFI1fUX_1749317493uscas1p1Z; Mon, 25 Apr 2022 22:30:58 +0000 (GMT) X-AuditID: cbfec370-a6bff70000002615-9d-626721221174 Received: from SSI-EX3.ssi.samsung.com ( [105.128.2.146]) by ussmgxs1new.samsung.com (USCPEXMTA) with SMTP id 32.5D.09702.12127626; Mon, 25 Apr 2022 18:30:58 -0400 (EDT) Received: from SSI-EX3.ssi.samsung.com (105.128.2.228) by SSI-EX3.ssi.samsung.com (105.128.2.228) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.2375.7; Mon, 25 Apr 2022 15:30:57 -0700 Received: from SSI-EX3.ssi.samsung.com ([105.128.5.228]) by SSI-EX3.ssi.samsung.com ([105.128.5.228]) with mapi id 15.01.2375.007; Mon, 25 Apr 2022 15:30:57 -0700 From: Adam Manzanares To: Davidlohr Bueso CC: "linux-mm@kvack.org" , "mhocko@kernel.org" , "akpm@linux-foundation.org" , "rientjes@google.com" , "yosryahmed@google.com" , "hannes@cmpxchg.org" , "shakeelb@google.com" , "dave.hansen@linux.intel.com" , "tim.c.chen@linux.intel.com" , "roman.gushchin@linux.dev" , "gthelen@google.com" , Heekwon Park , Jongmin Gim , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/6] drivers/base/node: cleanup register_node() Thread-Topic: [PATCH 1/6] drivers/base/node: cleanup register_node() Thread-Index: AQHYUVRPCSx4CL5jbUm8oG94siTkjq0Buu6A Date: Mon, 25 Apr 2022 22:30:57 +0000 Message-ID: <20220425223050.GA147460@bgt-140510-bm01> In-Reply-To: <20220416053902.68517-2-dave@stgolabs.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [105.128.2.176] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBKsWRmVeSWpSXmKPExsWy7djXc7pKiulJBuc3mVrMWb+GzeLFhnZG i9U31zBarFs1kcVi9SZfi8u75rBZ3Fvzn9Xi9bdlzBZtSzYyWUxcI2px8NprRotrk+azWWzf FenA63H4zXtmjwWbSj02repk89j0aRK7x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DmCv9riwMAAA== X-CMS-MailID: 20220425223058uscas1p10722f66722de23c644f8330da82fe1da CMS-TYPE: 301P X-CMS-RootMailID: 20220416053912uscas1p2df42c3e74997a1443a9a38450dae89a9 References: <20220416053902.68517-1-dave@stgolabs.net> <20220416053902.68517-2-dave@stgolabs.net> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 15, 2022 at 10:38:57PM -0700, Davidlohr Bueso wrote: > Trivially get rid of some unnecessary indentation. >=20 > Signed-off-by: Davidlohr Bueso > --- > drivers/base/node.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) >=20 > diff --git a/drivers/base/node.c b/drivers/base/node.c > index ec8bb24a5a22..6cdf25fd26c3 100644 > --- a/drivers/base/node.c > +++ b/drivers/base/node.c > @@ -661,16 +661,16 @@ static int register_node(struct node *node, int num= ) > node->dev.bus =3D &node_subsys; > node->dev.release =3D node_device_release; > node->dev.groups =3D node_dev_groups; > - error =3D device_register(&node->dev); > =20 > - if (error) > + error =3D device_register(&node->dev); > + if (error) { > put_device(&node->dev); > - else { > - hugetlb_register_node(node); > - > - compaction_register_node(node); > + return error; > } > - return error; > + > + hugetlb_register_node(node); > + compaction_register_node(node); > + return 0; > } > =20 > /** > --=20 > 2.26.2 > Looks good. Reviewed by: Adam Manzanares =