Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755606AbbKDLSF (ORCPT ); Wed, 4 Nov 2015 06:18:05 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:37948 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbbKDLSD (ORCPT ); Wed, 4 Nov 2015 06:18:03 -0500 X-AuditID: cbfee61a-f79a06d000005c6f-a0-5639e9683ee3 Date: Wed, 04 Nov 2015 12:17:54 +0100 From: Lukasz Majewski To: Alim Akhtar Cc: Krzysztof Kozlowski , Zhang Rui , Eduardo Valentin , Kukjin Kim , linux-pm@vger.kernel.org, "linux-samsung-soc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 3/5] thermal: exynos: Use IS_ERR() because regulator cannot be NULL Message-id: <20151104121754.70c5f148@amdc2363> In-reply-to: References: <1444282446-6419-1-git-send-email-k.kozlowski@samsung.com> <1444282446-6419-3-git-send-email-k.kozlowski@samsung.com> Organization: SPRC Poland X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsVy+t9jAd3Ml5ZhBhfvM1ssvVVtMf/KNVaL 1y8MLfofv2a22PQYyLu8aw6bxefeI4wWM87vY7J48rCPzYHTY+esu+wei/e8ZPLYtKqTzWPz knqPvi2rGD0+b5ILYIvisklJzcksSy3St0vgyji1i6VgJk/FtyULGBsYr3F2MXJySAiYSJya MYMJwhaTuHBvPVsXIxeHkMBSRomvbbsZIZw3jBKtx76ygFSxCKhKrN/0iRHEZhPQk/h89ylY t4iAusTL+xtZQRqYBaYwS1x/2gPWICwQKdF75zIziM0L1NDe8wismVMgWGLuwcUsEBtOMUq8 /3aIHSTBLyAp0f7vBzPETXYS5z5tYIdoFpT4Mfke2FBmAS2JzduaWCFseYnNa94yT2AUnIWk bBaSsllIyhYwMq9ilEgtSC4oTkrPNcxLLdcrTswtLs1L10vOz93ECI6PZ1I7GA/ucj/EKMDB qMTD2/DfIkyINbGsuDL3EKMEB7OSCK/pKcswId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rz6nkZh QgLpiSWp2ampBalFMFkmDk6pBsa1r9ZkFu0RZezpuXc+6fnL5TkHDyRP+WCkF3DzIscf9srk PNPYI3k3wxkfT84/HHCzuPVDTsVHn3st67Wb8p5tXnH6rrNCWsnkI6c4L8ypFm1+M+miba6t lbHXM62XSlnv1vpn39M3adpnbvDkfZFLsPjNRfkzPoUaaiyI1i7aaTRdrviXkbUSS3FGoqEW c1FxIgDSgd9LiwIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1755 Lines: 56 Hi Alim, > Hello, > > On Thu, Oct 8, 2015 at 11:04 AM, Krzysztof Kozlowski > wrote: > > The NULL check in probe's error path is not needed because in that > > time the regulator cannot be NULL (regulator_get() returns valid > > pointer or ERR_PTR). > > > > Signed-off-by: Krzysztof Kozlowski > > --- > Reviewed-by: Alim Akhtar > > > drivers/thermal/samsung/exynos_tmu.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/thermal/samsung/exynos_tmu.c > > b/drivers/thermal/samsung/exynos_tmu.c index > > bc71a61f0c4a..eac6aebf82f3 100644 --- > > a/drivers/thermal/samsung/exynos_tmu.c +++ > > b/drivers/thermal/samsung/exynos_tmu.c @@ -1396,7 +1396,7 @@ > > err_clk_sec: if (!IS_ERR(data->clk_sec)) > > clk_unprepare(data->clk_sec); > > err_sensor: > > - if (!IS_ERR_OR_NULL(data->regulator)) > > + if (!IS_ERR(data->regulator)) > > regulator_disable(data->regulator); > > > > return ret; > > -- > > 1.9.1 > > > > -- > > To unsubscribe from this list: send the line "unsubscribe > > linux-samsung-soc" in the body of a message to > > majordomo@vger.kernel.org More majordomo info at > > http://vger.kernel.org/majordomo-info.html > > > Acked-by: Lukasz Majewski Tested-by: Lukasz Majewski -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/