summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-12-24 20:14:08 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-12-24 20:14:08 +0000
commit0723e5b1ddcb52396fc24a9afaf6bd175d52549d (patch)
tree424cb44ed9d2eabe4a23f31581f715b60f549e51 /sys/kern
parent9e31d9c03b0ae59232651f5630e31c009ead110f (diff)
Make gpt_chk_mbr() instances even more identicaller by always
returning 0 or 1 since only boolean checks of the result are done. No need for EINVAL as a return value.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 38babce4e30..238573f7369 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.221 2015/12/24 18:03:03 krw Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.222 2015/12/24 20:14:07 krw Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -615,7 +615,7 @@ gpt_chk_mbr(struct dos_partition *dp, u_int64_t dsize)
if (found == 1 && efi == 1)
return (0);
- return (EINVAL);
+ return (1);
}
int