diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2005-08-20 17:09:46 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2005-08-20 17:09:46 +0000 |
commit | 962fc40b1eb4a4a36f32277e3afc51e94256a890 (patch) | |
tree | 7c5a24439b47f0a63243739deb6af32142dfe1bd /sys/dev/wscons | |
parent | 398ac55cb9184bf7385528537f71525c7debec31 (diff) |
some wsdisplay devices don't have an input device attached.
Fixes multi-head on sparc. ok henning@
Diffstat (limited to 'sys/dev/wscons')
-rw-r--r-- | sys/dev/wscons/wsdisplay.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index f2b8fbd4063..1fe3a31283e 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay.c,v 1.62 2005/08/14 11:00:15 miod Exp $ */ +/* $OpenBSD: wsdisplay.c,v 1.63 2005/08/20 17:09:45 matthieu Exp $ */ /* $NetBSD: wsdisplay.c,v 1.82 2005/02/27 00:27:52 perry Exp $ */ /* @@ -995,11 +995,11 @@ wsdisplay_internal_ioctl(struct wsdisplay_softc *sc, struct wsscreen *scr, } #endif inp = sc->sc_input; - if (inp == NULL) - return (ENXIO); - error = wsevsrc_display_ioctl(inp, cmd, data, flag, p); - if (error >= 0) - return (error); + if (inp != NULL) { + error = wsevsrc_display_ioctl(inp, cmd, data, flag, p); + if (error >= 0) + return (error); + } #endif /* NWSKBD > 0 */ switch (cmd) { |