aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2010-03-30 12:06:18 +0000
committerAttilio Rao <attilio@FreeBSD.org>2010-03-30 12:06:18 +0000
commit6f1f54906a450bb866476cb3936a148858cdc620 (patch)
treef66c0f8c963ee6029e74a5d714fab5d76b8d12e2 /sys
parent58c7715bb08c7fbb60cbfc5b4ba8c0f350c21ff7 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/aac/aac.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index 903ae75c022a..50507be83bcb 100644
--- a/sys/dev/aac/aac.c
+++ b/sys/dev/aac/aac.c
@@ -3123,11 +3123,7 @@ aac_ioctl_send_raw_srb(struct aac_softc *sc, caddr_t arg)
sge = srbcmd->sg_map.SgEntry;
sge64 = NULL;
srb_sg_bytecount = sge->SgByteCount;
-#ifdef __amd64__
- srb_sg_address = (void *)(uint64_t)sge->SgAddress;
-#else
- srb_sg_address = (void *)sge->SgAddress;
-#endif
+ srb_sg_address = (void *)(uintptr_t)sge->SgAddress;
}
#ifdef __amd64__
else if (fibsize == (sizeof(struct aac_srb) +