Re: [PATCH v6 5/8] scsi: hisi_sas: use sas_find_attathed_phy_id() instead of open coded

From: John Garry
Date: Wed Sep 28 2022 - 03:59:03 EST


On 28/09/2022 08:01, Jason Yan wrote:
The attached phy finding is open coded. Now we can replace it with
sas_find_attached_phy_id(). To keep consistent, the return value of
hisi_sas_dev_found() is also changed to -ENODEV after calling
sas_find_attathed_phy_id() failed.

Signed-off-by: Jason Yan<yanaijie@xxxxxxxxxx>
Reviewed-by: Jack Wang<jinpu.wang@xxxxxxxxx>
Reviewed-by: Damien Le Moal<damien.lemoal@xxxxxxxxxxxxxxxxxx>
---

Acked-by: John Garry <john.garry@xxxxxxxxxx>