summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/disksubr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c
index 6dc3e45c4e9..58aa7826948 100644
--- a/sys/arch/hppa/hppa/disksubr.c
+++ b/sys/arch/hppa/hppa/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.29 2006/08/11 21:32:40 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.30 2006/08/17 10:34:14 krw Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -147,10 +147,8 @@ readdisklabel(dev, strat, lp, osdep, spoofonly)
lp->d_secsize = DEV_BSIZE;
if (lp->d_secperunit == 0)
lp->d_secperunit = 0x1fffffff;
- if (lp->d_secpercyl == 0) {
- msg = "invalid geometry";
- goto done;
- }
+ if (lp->d_secpercyl == 0)
+ return ("invalid geometry");
lp->d_npartitions = RAW_PART + 1;
for (i = 0; i < RAW_PART; i++) {
lp->d_partitions[i].p_size = 0;