Re: [PATCH] soundwire: qcom: Use guard to avoid mixing cleanup and goto

From: Vinod Koul
Date: Tue Dec 16 2025 - 04:20:34 EST



On Mon, 01 Dec 2025 11:26:28 +0100, Krzysztof Kozlowski wrote:
> qcom_swrm_stream_alloc_ports() already uses cleanup.h but also has goto.
> Such combination is error-prone and discouraged:
>
> "... and that the "goto" statement can jump between scopes, the
> expectation is that usage of "goto" and cleanup helpers is never mixed
> in the same function."
>
> [...]

Applied, thanks!

[1/1] soundwire: qcom: Use guard to avoid mixing cleanup and goto
commit: 82ab754d102273f4c974a285aa8025bed7521b15

Best regards,
--
~Vinod