Re: [PATCH 3/3] ata: libata-zpodd: use a single exit in zpodd_get_mech_type()
From: Damien Le Moal
Date: Wed Nov 04 2026 - 23:09:27 EST
On 11/4/26 22:14, shao.mingyin@xxxxxxxxxx wrote:
> From: Shao Mingyin <shao.mingyin@xxxxxxxxxx>
>
> zpodd_get_mech_type() repeats "kfree(buf); return ..." at five
> points. Use one cleanup label and return the result from there.
>
> No functional change.
>
> Signed-off-by: Shao Mingyin <shao.mingyin@xxxxxxxxxx>
Looks OK.
Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
--
Damien Le Moal
Western Digital Research