Re: [PATCH] ASoC: samsung: i2s: Check before clk_unregister() not needed

From: Krzysztof Kozlowski
Date: Sun May 29 2022 - 04:06:36 EST


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