[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2bcf706b-10d5-9369-ff8a-2a3263f9fa70@linaro.org>
Date: Sun, 29 May 2022 10:06:16 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Yihao Han <hanyihao@...o.com>,
Sylwester Nawrocki <s.nawrocki@...sung.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: samsung: i2s: Check before clk_unregister() not
needed
On 27/05/2022 08:54, Yihao Han wrote:
> clk_unregister() already checks the clk ptr using
> !clk || WARN_ON_ONCE(IS_ERR(clk)) so there is no need to check it
> again before calling it.
>
No, this explanation does not make sense. clk_unregister() warns and
this code is not equivalent.
Best regards,
Krzysztof
Powered by blists - more mailing lists