diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-06-03 21:14:12 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-06-03 21:14:12 +0000 |
commit | b49266b0d1eedd55de57e1d4401567959d64668b (patch) | |
tree | 02b80af63ba95447490b8a98dd6789777c9d630c /sys/dev/flash.c | |
parent | d1f6c185b1e681044b7d5340282e8895910755e2 (diff) |
Get rid of the wlabel argument to bounds_check_with_label(). It's
never done anything in OpenBSD and just clutters disk drivers with
silly flag handling.
More cleanup to follow.
ok deraadt@, millert@; no objections krw@
Diffstat (limited to 'sys/dev/flash.c')
-rw-r--r-- | sys/dev/flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/flash.c b/sys/dev/flash.c index 0ccfdad15f6..965052e5bfa 100644 --- a/sys/dev/flash.c +++ b/sys/dev/flash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: flash.c,v 1.20 2010/09/24 18:27:43 jasper Exp $ */ +/* $OpenBSD: flash.c,v 1.21 2011/06/03 21:14:11 matthew Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org> @@ -811,7 +811,7 @@ flashstrategy(struct buf *bp) goto done; /* Do bounds checking on partitions. */ - if (bounds_check_with_label(bp, sc->sc_dk.dk_label, 0) <= 0) + if (bounds_check_with_label(bp, sc->sc_dk.dk_label) <= 0) goto done; /* Queue the transfer. */ |