Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mac68k/dev Fix WSMOUSEIO_GTYPE so that X does not f...



details:   https://anonhg.NetBSD.org/src/rev/86cc250659a5
branches:  trunk
changeset: 368718:86cc250659a5
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Jul 30 07:27:55 2022 +0000

description:
Fix WSMOUSEIO_GTYPE so that X does not fail to initialize wsmouse(4).

diffstat:

 sys/arch/mac68k/dev/ams.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r da32b147c4f8 -r 86cc250659a5 sys/arch/mac68k/dev/ams.c
--- a/sys/arch/mac68k/dev/ams.c Sat Jul 30 03:29:52 2022 +0000
+++ b/sys/arch/mac68k/dev/ams.c Sat Jul 30 07:27:55 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ams.c,v 1.25 2021/08/07 16:18:57 thorpej Exp $ */
+/*     $NetBSD: ams.c,v 1.26 2022/07/30 07:27:55 rin Exp $     */
 
 /*
  * Copyright (C) 1998  Colin Wood
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ams.c,v 1.25 2021/08/07 16:18:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ams.c,v 1.26 2022/07/30 07:27:55 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -526,7 +526,7 @@
        switch (cmd) {
        case WSMOUSEIO_GTYPE:
                *(u_int *)data = WSMOUSE_TYPE_ADB;
-               break;
+               return 0;
        }
        return EPASSTHROUGH;
 }



Home | Main Index | Thread Index | Old Index