Re: [PATCH v4 2/5] scsi: libsas: Simplify sas_ata_wait_eh()

Jason Yan
2025-07-25T06:20:59Z

在 2025/7/25 9:58, Damien Le Moal 写道:
> Simplify the code of sas_ata_wait_eh(), removing the local variable ap
> for the pointer to the device ata_port structure. The test using
> dev_is_sata() is also removed as all call sites of this function check
> if the device is a SATA one before calling this function.
>
> Signed-off-by: Damien Le Moal<dlemoal@kernel.org>
> Reviewed-by: John Garry<john.g.garry@oracle.com>
> ---
> drivers/scsi/libsas/sas_ata.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)

Reviewed-by: Jason Yan <yanaijie@huawei.com>