summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wsdisplay.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-02-23 19:08:12 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-02-23 19:08:12 +0000
commita4975ea8d43d1acac999cce85852e49e80d0bc0c (patch)
treef87d9d83afa12313ff258868e04c9ada5a0842de /sys/dev/wscons/wsdisplay.c
parent13db2e289f9b402629859b115c4f617f23ee7eeb (diff)
initialize error
ok miod@
Diffstat (limited to 'sys/dev/wscons/wsdisplay.c')
-rw-r--r--sys/dev/wscons/wsdisplay.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c
index 942d4a2ac35..c998d9a09f0 100644
--- a/sys/dev/wscons/wsdisplay.c
+++ b/sys/dev/wscons/wsdisplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsdisplay.c,v 1.49 2002/10/12 01:09:44 krw Exp $ */
+/* $OpenBSD: wsdisplay.c,v 1.50 2003/02/23 19:08:11 tedu Exp $ */
/* $NetBSD: wsdisplay.c,v 1.37.4.1 2000/06/30 16:27:53 simonb Exp $ */
/*
@@ -2301,13 +2301,11 @@ ctrl_event(u_int type, int value, struct wsdisplay_softc *ws_sc, struct proc *p)
if (type == WSCONS_EVENT_WSMOUSED_SLEEP) {
/* sleeping until next switch to text mode */
ws_sc->wsmoused_sleep = 1;
+ error = 0;
while (ws_sc->wsmoused_sleep && error == 0)
error = tsleep(&ws_sc->wsmoused_sleep, PPAUSE,
"wsmoused_sleep", 0);
- if (error)
- return error;
- else
- return (0);
+ return (error);
}
for (i = 0 ; i < WSDISPLAY_DEFAULTSCREENS ; i++)
if (sc->sc_scr[i]) {