Re: [PATCH v6 2/2] i2c: designware-platdrv: fix cleanup on probe failure

From: Mika Westerberg

Date: Mon Feb 02 2026 - 04:25:44 EST


On Fri, Jan 30, 2026 at 02:10:37PM +0300, Artem Shimko wrote:
> Simplify the error handling in dw_i2c_plat_probe() by consolidating
> cleanup operations directly in the error path instead of using a
> goto label.
>
> This eliminates the goto statement, makes the error handling more
> transparent, and reduces code indirection while maintaining identical
> cleanup behavior on probe failure.
>
> Signed-off-by: Artem Shimko <a.shimko.dev@xxxxxxxxx>

Acked-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>