summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2010-03-15 14:20:16 +0000
committerattilio <attilio@FreeBSD.org>2010-03-15 14:20:16 +0000
commit8a3325736a863dcc8563cc5c49df082b9692f15d (patch)
treecc0f482704b8e98bbe7be113efae8f43788fc8bf /sys/dev/aac
parentb9030b276ea27caac8dad252c6131694ffec5b08 (diff)
downloadFreeBSD-src-8a3325736a863dcc8563cc5c49df082b9692f15d.zip
FreeBSD-src-8a3325736a863dcc8563cc5c49df082b9692f15d.tar.gz
Make the code more readable and compiling on 64-bits arch different
than amd64. Sponsored by: Sandvine Incorporated Submitted by: emaste MFC: 2 weeks X-MFC: r205160
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 fa25716..642a2db 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) +
OpenPOWER on IntegriCloud