diff options
author | 2025-07-25 10:58:14 +0900 | |
---|---|---|
committer | 2025-07-25 09:03:56 -0400 | |
commit | 54091eee08acebfb5e971611c3f189e7577a1058 (patch) | |
tree | 3b9372aa8d3ca4b6b70d00e77c235c1ecf663248 /tools/perf/scripts/python | |
parent | Linux 6.16-rc1 (diff) | |
download | wireguard-linux-54091eee08acebfb5e971611c3f189e7577a1058.tar.xz wireguard-linux-54091eee08acebfb5e971611c3f189e7577a1058.zip |
scsi: libsas: Refactor dev_is_sata()
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>
Link: https://lore.kernel.org/r/20250725015818.171252-2-dlemoal@kernel.org
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions