summaryrefslogtreecommitdiff
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2007-06-05 03:08:11 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2007-06-05 03:08:11 +0000
commit16874fe890a5dd39a079fe03f3e48905d852da82 (patch)
tree39e259e4b06dcd43c3210d2e0e8eeb8f201c6d8e /sys/dev/softraid.c
parentd8edefa5943c6e4c14718b08e96bb6b84856f2e7 (diff)
consistently use one variable instead of deriving it repeatedly
from and ok marco@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 25ae3a7c5a1..ce600568bf8 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.78 2007/06/05 00:38:20 deraadt Exp $ */
+/* $OpenBSD: softraid.c,v 1.79 2007/06/05 03:08:10 todd Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
*
@@ -2033,7 +2033,7 @@ sr_boot_assembly(struct sr_softc *sc)
continue;
bp->b_dev = dev = MAKEDISKDEV(majdev, dv->dv_unit, RAW_PART);
- bdsw = &bdevsw[major(dev)];
+ bdsw = &bdevsw[majdev];
/* XXX is there a better way of excluding some devices? */
if (!strncmp(dv->dv_xname, "fd", 2) ||