Re: [PATCH 2/3] ata: libahci_platform: drop the dead error check

From: Damien Le Moal

Date: Wed Nov 04 2026 - 23:29:00 EST


On 11/4/26 22:14, shao.mingyin@xxxxxxxxxx wrote:
> From: Shao Mingyin <shao.mingyin@xxxxxxxxxx>
>
> IS_ERR(hpriv->ahci_regulator) is true here, so PTR_ERR() is negative
> and "rc != 0" is always true. Jump to the error path directly.
>
> 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