diff options
author | 2008-11-01 21:25:34 +0000 | |
---|---|---|
committer | 2008-11-01 21:25:34 +0000 | |
commit | e88b9d208e4922d0250dc670bf1b6a03c129e751 (patch) | |
tree | 07b2f50ebdbf10b8a8f330c5d92e04e1829017e0 | |
parent | change vrele() to return an int. if it returns 0, it can gaurantee that (diff) | |
download | wireguard-openbsd-e88b9d208e4922d0250dc670bf1b6a03c129e751.tar.xz wireguard-openbsd-e88b9d208e4922d0250dc670bf1b6a03c129e751.zip |
Fix bogus shift.
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index e7c8e6205ef..7432af36bc9 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.101 2008/11/01 18:18:16 marco Exp $ */ +/* $OpenBSD: mpi.c,v 1.102 2008/11/01 21:25:34 marco Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org> @@ -2834,7 +2834,7 @@ mpi_ioctl_disk(struct mpi_softc *sc, struct bioc_disk *bd) physdisk += pdid; /* get raid phys disk page 0 */ - address = physdisk->phys_disk_num << 24; + address = physdisk->phys_disk_num; if (mpi_cfg_header(sc, MPI_CONFIG_REQ_PAGE_TYPE_RAID_PD, 0, address, &hdr) != 0) goto done; |