aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2010-03-15 14:20:16 +0000
committerAttilio Rao <attilio@FreeBSD.org>2010-03-15 14:20:16 +0000
commit6eafba267e50632dc2f82b44000a77a9bd91c138 (patch)
treecc0f482704b8e98bbe7be113efae8f43788fc8bf /sys/dev/aac
parent156a1661a6120b7c32c1fd1d55cbd5c84ff3752a (diff)
Notes
Diffstat (limited to 'sys/dev/aac')
-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 fa257167a0b4..642a2dbf7ae4 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) +