From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17D46189B84; Fri, 28 Feb 2025 16:50:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740761458; cv=none; b=lYeFIRhnLvZAfAgP4yE8/sUVQL5XdiwCwn5C4VdPpRDXecBHVVKQA3thQEF0dd91WXPu8tZ+UfRHrOx9nqUrjzx3DUZNzlRvEE5BP2gqXLIFhrl8pV+yKk7ixegUw2qRqWan/qCcbL7WFCrVHG6gMqmo972LCbqoW+SNHfpIMT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740761458; c=relaxed/simple; bh=RjvmYgFj26Tl1M9VV8mPvQ7wgYX8kNV0gdkARYL9DLE=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=tpVlwL2pUptixv/nR9u1ihE9Y89vtmBFMpLFlXJNwjE1vTquT5HdP6weBlKl4jTaou4vK3iJR8HpCs1CtnMpKW+hsvDWtldcYMLoOO06ASCQM6OYwEhzCTOLuJO7gcZFfXPy2XV5NgFScgiKcpAA9oKcCQy1eAdo8aVPLO554Is= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6BA44150C; Fri, 28 Feb 2025 08:51:10 -0800 (PST) Received: from [10.57.79.187] (unknown [10.57.79.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 349603F6A8; Fri, 28 Feb 2025 08:50:53 -0800 (PST) Message-ID: <4b83669e-db37-4a38-ac43-5d210d7ce544@arm.com> Date: Fri, 28 Feb 2025 16:50:51 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/4] drivers/thermal/exymos: Remove redundant IS_ERR() checks for clk_sec clock To: Anand Moon References: <20250216195850.5352-1-linux.amoon@gmail.com> <20250216195850.5352-3-linux.amoon@gmail.com> Content-Language: en-US Cc: Bartlomiej Zolnierkiewicz , "open list:SAMSUNG THERMAL DRIVER" , Alim Akhtar , Daniel Lezcano , "moderated list:ARM/SAMSUNG S3C, S5P AND EXYNOS ARM ARCHITECTURES" , "open list:SAMSUNG THERMAL DRIVER" , Krzysztof Kozlowski , "Rafael J. Wysocki" , Zhang Rui , open list From: Lukasz Luba In-Reply-To: <20250216195850.5352-3-linux.amoon@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/16/25 19:58, Anand Moon wrote: > Remove unnecessary IS_ERR() checks for the clk_sec clock, > the clk_enable() and clk_disable() functions can handle NULL clock > pointers, so the additional checks are redundant and have been removed > to simplify the code. This patch looks sane, just rework the 'goto' stuff in the exynos_tmu_probe() maybe in the patch 1/4 so won't be needed here.