summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-21 15:46:25 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-21 15:46:25 +0000
commit154d8a99ff3b0b92e61ba167d9ac181ce177ae18 (patch)
tree79c9b3634d6fdbe123e531de97b8543a3a373ae2 /sys/arch/i386/stand/libsa
parentc1dbd9eb47e1176cde46caad7f2c0cdb77282326 (diff)
2nd rule of comitting fix
Diffstat (limited to 'sys/arch/i386/stand/libsa')
-rw-r--r--sys/arch/i386/stand/libsa/ps2probe.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/libsa/ps2probe.h b/sys/arch/i386/stand/libsa/ps2probe.h
index 9e7bd7a3f7b..8835bd1a51f 100644
--- a/sys/arch/i386/stand/libsa/ps2probe.h
+++ b/sys/arch/i386/stand/libsa/ps2probe.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ps2probe.h,v 1.1 2001/08/18 15:34:17 mickey Exp $ */
+/* $OpenBSD: ps2probe.h,v 1.2 2001/08/21 15:46:24 mickey Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -31,7 +31,7 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-static __inline int
+static __inline void
ps2probe(void)
{
char *p;
@@ -43,7 +43,5 @@ ps2probe(void)
: "0" (0xc000)
: "%ecx", "cc");
if (!(r & 0xff))
- return p[2];
- else
- return 0;
+ ps2model = (p[2] << 8) | p[3];
}