diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-06-28 18:17:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-06-28 18:17:13 +0000 |
commit | 0f2280faf68593d3ae5f8f6fb6246ce10ed943e6 (patch) | |
tree | d41a455031442e27bffc52e7ff86997b9762ddf2 | |
parent | e2e396439f4f5093ff51e9ae75b92c47a7d56b5c (diff) |
Uninitialized variable; Maxime Villard
-rw-r--r-- | sys/arch/hp300/dev/hd.c | 4 |
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) { |