aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2025-07-25 01:58:14 +0000
committerMartin K. Petersen <[email protected]>2025-07-25 13:03:56 +0000
commit54091eee08acebfb5e971611c3f189e7577a1058 (patch)
tree3b9372aa8d3ca4b6b70d00e77c235c1ecf663248 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentLinux 6.16-rc1 (diff)
downloadkernel-54091eee08acebfb5e971611c3f189e7577a1058.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: John Garry <[email protected]> Reviewed-by: Jason Yan <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions