Re: [PATCH] Input: elan_i2c - switch to using cleanup functions
From: Dmitry Torokhov
Date: Thu Oct 03 2024 - 11:44:13 EST
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@xxxxxxxxx>
Applied since there were no objections.
Thanks.
--
Dmitry