Re: [PATCH] Input: elan_i2c - switch to using cleanup functions

Dmitry Torokhov
2024-10-03T15:43:05Z

On Sat, Aug 24, 2024 at 10:28:43PM -0700, Dmitry Torokhov wrote:
> Start using __free() and guard() primitives to simplify the code
> and error handling. This makes the code more compact and error
> handling more robust by ensuring that locks are released in all
> code paths when control leaves critical section and all allocated
> memory is freed.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Applied since there were no objections.

Thanks.

--
Dmitry