summaryrefslogtreecommitdiffstats
path: root/sys/dev/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/flash.c')
-rw-r--r--sys/dev/flash.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/flash.c b/sys/dev/flash.c
index abce68b529f..c6ea5ccb26b 100644
--- a/sys/dev/flash.c
+++ b/sys/dev/flash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: flash.c,v 1.8 2007/06/20 18:15:46 deraadt Exp $ */
+/* $OpenBSD: flash.c,v 1.9 2008/06/15 00:36:41 krw Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org>
@@ -809,8 +809,7 @@ flashstrategy(struct buf *bp)
goto done;
/* Do bounds checking on partitions. */
- if (flashpart(bp->b_dev) != RAW_PART &&
- bounds_check_with_label(bp, sc->sc_dk.dk_label, 0) <= 0)
+ if (bounds_check_with_label(bp, sc->sc_dk.dk_label, 0) <= 0)
goto done;
/* Queue the transfer. */