summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-01-17 02:39:06 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-01-17 02:39:06 +0000
commitbe073c6c3ffe1a38fa12be7dc2a4858197458ab0 (patch)
tree6c1880e3271442122c1a2777f4287d8bed972910 /sys/dev/ic
parent87f978f5570cda4c0193d320980e036df10f8e08 (diff)
treat DVAs as 64bits all the time so we can avoid ugly casts and shifts in
the code.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/mpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index c88d27ad1e0..2cb8801b969 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.179 2012/09/18 23:54:29 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.180 2013/01/17 02:39:05 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -2095,7 +2095,7 @@ mpi_iocinit(struct mpi_softc *sc)
iiq.reply_frame_size = htole16(MPI_REPLY_SIZE);
- hi_addr = (u_int32_t)((u_int64_t)MPI_DMA_DVA(sc->sc_requests) >> 32);
+ hi_addr = (u_int32_t)(MPI_DMA_DVA(sc->sc_requests) >> 32);
iiq.host_mfa_hi_addr = htole32(hi_addr);
iiq.sense_buffer_hi_addr = htole32(hi_addr);