summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_disk.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 5d1c8b1b629..4711e347551 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.85 2009/03/28 14:58:10 dlg Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.86 2009/05/03 06:45:58 krw Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -495,6 +495,7 @@ donot:
part_blkno = 0;
}
wander = 1;
+ continue;
break;
default:
fstype = FS_OTHER;
@@ -503,11 +504,11 @@ donot:
}
/*
- * Don't set fstype/offset/size when wandering or just
- * looking for the offset of the OpenBSD partition. It
- * would invalidate the disklabel checksum!
+ * Don't set fstype/offset/size when just looking for
+ * the offset of the OpenBSD partition. It would
+ * invalidate the disklabel checksum!
*/
- if (wander || partoffp)
+ if (partoffp)
continue;
pp->p_fstype = fstype;