summaryrefslogtreecommitdiffstats
path: root/sys/dev/flash.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2011-06-03 21:14:11 +0000
committermatthew <matthew@openbsd.org>2011-06-03 21:14:11 +0000
commit58d155a8bd341acd2e73b81dea97af3abb749a0c (patch)
treebb8e802bc72a7bc8af785edf9d9be535536ee1f7 /sys/dev/flash.c
parentone midicat server can export multiple midithru ports (diff)
downloadwireguard-openbsd-58d155a8bd341acd2e73b81dea97af3abb749a0c.tar.xz
wireguard-openbsd-58d155a8bd341acd2e73b81dea97af3abb749a0c.zip
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.c4
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. */