Re: [PATCH v4 1/5] scsi: libsas: Refactor dev_is_sata()

Jason Yan
2025-07-25T06:17:33Z

在 2025/7/25 9:58, Damien Le Moal 写道:
> Use a switch statement in dev_is_sata() to make the code more readable
> (and probably slightly better than a series of or conditions). Also have
> this inline function return a boolean instead of an integer.
>
> No functional changes.
>
> Signed-off-by: Damien Le Moal<dlemoal@kernel.org>
> Reviewed-by: John Garry<john.g.garry@oracle.com>
> ---
> include/scsi/sas_ata.h | 17 ++++++++++++-----
> 1 file changed, 12 insertions(+), 5 deletions(-)

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