summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-06-28 18:17:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-06-28 18:17:13 +0000
commit0f2280faf68593d3ae5f8f6fb6246ce10ed943e6 (patch)
treed41a455031442e27bffc52e7ff86997b9762ddf2
parente2e396439f4f5093ff51e9ae75b92c47a7d56b5c (diff)
Uninitialized variable; Maxime Villard
-rw-r--r--sys/arch/hp300/dev/hd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hp300/dev/hd.c b/sys/arch/hp300/dev/hd.c
index 8765ca9df05..1cf333d3f21 100644
--- a/sys/arch/hp300/dev/hd.c
+++ b/sys/arch/hp300/dev/hd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hd.c,v 1.70 2013/06/11 16:42:07 deraadt Exp $ */
+/* $OpenBSD: hd.c,v 1.71 2013/06/28 18:17:12 miod Exp $ */
/* $NetBSD: rd.c,v 1.33 1997/07/10 18:14:08 kleink Exp $ */
/*
@@ -541,7 +541,7 @@ hdopen(dev, flags, mode, p)
*/
if (!ISSET(rs->sc_dkdev.dk_flags, DKF_CONSTRUCTED)) {
device_unref(&rs->sc_dev);
- return (error);
+ return (ENXIO);
}
if ((error = disk_lock(&rs->sc_dkdev)) != 0) {