* [PATCH] scsi: mpt3sas: Replace cpu_to_be64 + le64_to_cpu with swab64
@ 2025-12-10 14:34 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2025-12-10 14:34 UTC (permalink / raw)
To: Sathya Prakash, Sreekanth Reddy, Suganath Prabu Subramani,
James E.J. Bottomley, Martin K. Petersen
Cc: Thorsten Blum, MPT-FusionLinux.pdl, linux-scsi, linux-kernel
Replace cpu_to_be64(le64_to_cpu()) with swab64() to simplify
mpt3sas_atto_get_sas_addr().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c
index 0d652db8fe24..d60464668123 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
@@ -5539,7 +5539,7 @@ mpt3sas_atto_get_sas_addr(struct MPT3SAS_ADAPTER *ioc, union ATTO_SAS_ADDRESS *s
return r;
addr = *((__be64 *) nvram->SasAddr);
- sas_addr->q = cpu_to_le64(be64_to_cpu(addr));
+ sas_addr->q = swab64(addr);
return r;
}
--
Thorsten Blum <thorsten.blum@linux.dev>
GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-10 14:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10 14:34 [PATCH] scsi: mpt3sas: Replace cpu_to_be64 + le64_to_cpu with swab64 Thorsten Blum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox