Re: [PATCH v3 1/2] scsi: libsas: refactor sas_ex_to_ata() using new helper sas_ex_to_dev()
From: John Garry
Date: Thu May 21 2026 - 04:11:10 EST
On 15/05/2026 09:45, Xingui Yang wrote:
The sas_ex_to_ata() function checks for an attached ATA device on anI think you mean that later we can improve code reuse. You imply that code reuse improves now in this change.
expander phy. Refactor it to use a new helper function sas_ex_to_dev()
which returns any device type attached to an expander phy, improving code
reuse
and allowing other code paths to find attached devices regardless
of type.
No functional changes intended.
Reviewed-by: Jason Yan<yanaijie@xxxxxxxxxx>
Signed-off-by: Xingui Yang<yangxingui@xxxxxxxxxx>
Reviewed-by: John Garry <john.g.garry@xxxxxxxxxx>