Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp28960ybi; Thu, 23 May 2019 22:57:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbxFRxOx4HNQhUwAvWB7BWGMq+wfY7PEHXwZF0ozkzyDMFEAQwBBTQ7ltq3Suoc6f6b/a7 X-Received: by 2002:a62:54c7:: with SMTP id i190mr87348008pfb.87.1558677443606; Thu, 23 May 2019 22:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558677443; cv=none; d=google.com; s=arc-20160816; b=nVScQoaHhZWIG+TH2cvaHfjzdi9AGCkInaSN+G2VI6foCFSykzLIaH/DP/DAH+N4Yp 0vznnaYZxYxMRhz9hHFUY48rUfs//ep4D7KFNLWedqPiCvQmquafmwWk99rID9slhiNq mXttjxAURmece60mwucQeVuqKyvgOx05JSGofXrkGvtkd1y0WZ5fs9LN6CMAzWb26Kw1 1J5Ctr7fFftwHWReCOOsBjn0XzePJBuM/+Kh2NIXyUSqCMO3o94QwMLIHxu6XCMw8pm0 VyXG3qWpUguxwxGoHlgBy8Gd4GIpkhcQ8gdFJLNo6ynu6xqSPde9a0x5jCWb+pO6KjSG Ss9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=R3jNrJbSE+OLLbjY/ZhGMPVrdaaXS8U8WtMRqD0FeTw=; b=uX1ivRUYh29MAmM7MF1+jVeN2bqp78pWPuNw8mDCSaA6GtCwWPly/oiLmy/jQJTu57 DLXkuUn2CD1+5KKcoISiHRR0k67LSmEmbwhPjkyWNM2SSFVAV3EwRKYhOLr+0t7yz5ci 8wxbhuDsX22vF0Bz09kMPs27LQ1Tt3JusXeAQUmrL/PkM+SJdYiSEbypxjdLR0VTAA4Q Rl5es02zf8jMm9gjxk3cDGWt+G83QJA6NpIoLW6nq9xlDobpuWddKndo6YZQd+xnU6bz i98V3mZTZyaLwWbevD34mtKW1O1hDuCZhqCPO7s8o8sROyP7id9jpLzRAvLGosZRWrFB u0Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=L3QA65NQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c18si2765898pfp.284.2019.05.23.22.57.04; Thu, 23 May 2019 22:57:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=L3QA65NQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388858AbfEXFxi (ORCPT + 99 others); Fri, 24 May 2019 01:53:38 -0400 Received: from mail-eopbgr80088.outbound.protection.outlook.com ([40.107.8.88]:27310 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388258AbfEXFxi (ORCPT ); Fri, 24 May 2019 01:53:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R3jNrJbSE+OLLbjY/ZhGMPVrdaaXS8U8WtMRqD0FeTw=; b=L3QA65NQL00ZRideaw6x8NbkSNUuobOwvN7BX7JcXPG2MLaVdPMYUzQfgpgf2uqB0Zh0Y2/SN7fOPiJ/5Eji5eog/nkifTXXHd3u0FhpKjVb23xS2rErQWm6yoMUwqVEgyl9sfCWpGvSFtw1769wdAWdHjG+RwLOVcEtN1zPMzg= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3882.eurprd04.prod.outlook.com (52.134.72.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.18; Fri, 24 May 2019 05:53:33 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::5835:e874:bd94:fec]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::5835:e874:bd94:fec%5]) with mapi id 15.20.1922.017; Fri, 24 May 2019 05:53:33 +0000 From: Anson Huang To: Shawn Guo CC: "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Leonard Crestez , Abel Vesa , "viresh.kumar@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: RE: [PATCH 1/2] soc: imx: soc-imx8: Avoid unnecessary of_node_put() in error handling Thread-Topic: [PATCH 1/2] soc: imx: soc-imx8: Avoid unnecessary of_node_put() in error handling Thread-Index: AQHVD7YvdNtmZ2uz6UeyYdwfC+FzEKZ4qg6AgAEgPbA= Date: Fri, 24 May 2019 05:53:33 +0000 Message-ID: References: <1558430013-18346-1-git-send-email-Anson.Huang@nxp.com> <20190523124044.GT9261@dragon> In-Reply-To: <20190523124044.GT9261@dragon> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5214ef71-8460-48f9-321c-08d6e00c2812 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3882; x-ms-traffictypediagnostic: DB3PR0402MB3882: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0047BC5ADE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(39860400002)(136003)(346002)(376002)(13464003)(189003)(199004)(6306002)(4326008)(102836004)(6506007)(316002)(6246003)(9686003)(7736002)(53546011)(8936002)(6916009)(229853002)(478600001)(76116006)(33656002)(55016002)(64756008)(25786009)(66066001)(66946007)(73956011)(8676002)(66556008)(66446008)(66476007)(81166006)(476003)(446003)(81156014)(6436002)(11346002)(14454004)(5660300002)(74316002)(2906002)(44832011)(54906003)(68736007)(486006)(86362001)(3846002)(76176011)(7696005)(256004)(26005)(52536014)(6116002)(186003)(966005)(99286004)(71190400001)(71200400001)(53936002)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3882;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 6w3ZCUflHoT3YNMuO7+Y4xHTWhSb/MWLl81gBV0awS/AknieNqI7zYToksg1a5SW01Ont+rhrwLU0BQ8dOKPTg9/JolA3XqfGGkKyjVf4JKwf0gW9t12JWfwCrHZtzEO//5Nme+z4PkoPDOxM08zyFx07t0YIbqOxJLe0hV5LLvIzkMRaC1kUh54O2ne/m1d8xH3jFMn6sCmzamaUidwEBgPcuxXxZ4RNhp3Up52iq553wmOknJUE9Cz8AFf0ZGrTLVLEXKiGwg0I/te2Inip0Ncn11jVB1dtXULH4MRnms4NxOCQVYYIJJiP9OGRv2SD50I/yFwZ+D0ELXUEQwaz8LrrU1ahtNLElmejJq8IBmAVNSrIeK+xs06PUid/tm0BeLEXPZHOPbo1++mvqdXB8GNn238Phz/6BUxPnCI8UI= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5214ef71-8460-48f9-321c-08d6e00c2812 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2019 05:53:33.4075 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: anson.huang@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3882 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIFNoYXduDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogU2hhd24g R3VvIFttYWlsdG86c2hhd25ndW9Aa2VybmVsLm9yZ10NCj4gU2VudDogVGh1cnNkYXksIE1heSAy MywgMjAxOSA4OjQxIFBNDQo+IFRvOiBBbnNvbiBIdWFuZyA8YW5zb24uaHVhbmdAbnhwLmNvbT4N Cj4gQ2M6IHMuaGF1ZXJAcGVuZ3V0cm9uaXguZGU7IGtlcm5lbEBwZW5ndXRyb25peC5kZTsgZmVz dGV2YW1AZ21haWwuY29tOw0KPiBMZW9uYXJkIENyZXN0ZXogPGxlb25hcmQuY3Jlc3RlekBueHAu Y29tPjsgQWJlbCBWZXNhDQo+IDxhYmVsLnZlc2FAbnhwLmNvbT47IHZpcmVzaC5rdW1hckBsaW5h cm8ub3JnOyBsaW51eC1hcm0tDQo+IGtlcm5lbEBsaXN0cy5pbmZyYWRlYWQub3JnOyBsaW51eC1r ZXJ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