summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/hppa/disksubr.c9
-rw-r--r--sys/arch/hppa64/hppa64/disksubr.c9
2 files changed, 6 insertions, 12 deletions
diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c
index 962dc450a6a..93ef104997e 100644
--- a/sys/arch/hppa/hppa/disksubr.c
+++ b/sys/arch/hppa/hppa/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.74 2009/06/14 00:09:37 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.75 2009/06/17 07:00:43 deraadt Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -113,10 +113,8 @@ readliflabel(struct buf *bp, void (*strat)(struct buf *),
return "LIF volume header I/O error";
lvp = (struct lifvol *)bp->b_data;
- if (lvp->vol_id != LIF_VOL_ID) {
- openbsdstart = 0;
- goto finished;
- }
+ if (lvp->vol_id != LIF_VOL_ID)
+ return "no LIF volume header";
dbp = geteblk(LIF_DIRSIZE);
dbp->b_dev = bp->b_dev;
@@ -129,7 +127,6 @@ readliflabel(struct buf *bp, void (*strat)(struct buf *),
if (biowait(dbp)) {
msg = "LIF directory I/O error";
- openbsdstart = 0;
goto done;
}
diff --git a/sys/arch/hppa64/hppa64/disksubr.c b/sys/arch/hppa64/hppa64/disksubr.c
index 65df5fbe288..74c4f77be09 100644
--- a/sys/arch/hppa64/hppa64/disksubr.c
+++ b/sys/arch/hppa64/hppa64/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.58 2009/06/14 00:09:38 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.59 2009/06/17 07:00:45 deraadt Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -113,10 +113,8 @@ readliflabel(struct buf *bp, void (*strat)(struct buf *),
return "LIF volume header I/O error";
lvp = (struct lifvol *)bp->b_data;
- if (lvp->vol_id != LIF_VOL_ID) {
- openbsdstart = 0;
- goto finished;
- }
+ if (lvp->vol_id != LIF_VOL_ID)
+ return "no LIF volume header";
dbp = geteblk(LIF_DIRSIZE);
dbp->b_dev = bp->b_dev;
@@ -129,7 +127,6 @@ readliflabel(struct buf *bp, void (*strat)(struct buf *),
if (biowait(dbp)) {
msg = "LIF directory I/O error";
- openbsdstart = 0;
goto done;
}