diff options
| author | drochner <drochner@NetBSD.org> | 2003-11-28 13:19:46 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2003-11-28 13:19:46 +0000 |
| commit | 4d60676c449053948ebbd2d880a6a8562fa733bb (patch) | |
| tree | e60be688b1034e010a6b3652a7aa068c52a95a96 /sys/dev | |
| parent | 69792033021d371bb2a25265cc45d180551d1d25 (diff) | |
-remove a check of errno against -1, this is nonsense since
we have EPASSTHROUGH
-remove a superflous #if NWSMOUSE
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/wscons/wsmouse.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/wscons/wsmouse.c b/sys/dev/wscons/wsmouse.c index d3ea17bd576..35ecbd85ac4 100644 --- a/sys/dev/wscons/wsmouse.c +++ b/sys/dev/wscons/wsmouse.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsmouse.c,v 1.33 2003/09/21 19:17:01 jdolecek Exp $ */ +/* $NetBSD: wsmouse.c,v 1.34 2003/11/28 13:19:46 drochner Exp $ */ /* * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. @@ -75,7 +75,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.33 2003/09/21 19:17:01 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.34 2003/11/28 13:19:46 drochner Exp $"); #include "wsmouse.h" #include "wsdisplay.h" @@ -151,9 +151,7 @@ static int wsmousedoopen(struct wsmouse_softc *, struct wseventvar *); CFATTACH_DECL(wsmouse, sizeof (struct wsmouse_softc), wsmouse_match, wsmouse_attach, wsmouse_detach, wsmouse_activate); -#if NWSMOUSE > 0 extern struct cfdriver wsmouse_cd; -#endif /* NWSMOUSE > 0 */ dev_type_open(wsmouseopen); dev_type_close(wsmouseclose); @@ -605,7 +603,7 @@ wsmouse_do_ioctl(struct wsmouse_softc *sc, u_long cmd, caddr_t data, */ error = (*sc->sc_accessops->ioctl)(sc->sc_accesscookie, cmd, data, flag, p); - return (error != -1 ? error : ENOTTY); + return (error); /* may be EPASSTHROUGH */ } int |
