Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pckbport Do not print ALPS related message when gene...



details:   https://anonhg.NetBSD.org/src/rev/02e1599fdf75
branches:  trunk
changeset: 826118:02e1599fdf75
user:      ryoon <ryoon%NetBSD.org@localhost>
date:      Tue Aug 15 22:23:09 2017 +0000

description:
Do not print ALPS related message when generic PS/2 case

diffstat:

 sys/dev/pckbport/alps.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9c70281247aa -r 02e1599fdf75 sys/dev/pckbport/alps.c
--- a/sys/dev/pckbport/alps.c   Tue Aug 15 21:21:18 2017 +0000
+++ b/sys/dev/pckbport/alps.c   Tue Aug 15 22:23:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alps.c,v 1.1 2017/08/13 08:49:27 christos Exp $ */
+/* $NetBSD: alps.c,v 1.2 2017/08/15 22:23:09 ryoon Exp $ */
 
 /*-
  * Copyright (c) 2017 Ryo ONODERA <ryo%tetera.org@localhost>
@@ -30,7 +30,7 @@
 #include "opt_pms.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.1 2017/08/13 08:49:27 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.2 2017/08/15 22:23:09 ryoon Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -695,7 +695,7 @@
        pckbport_flush(psc->sc_kbctag, psc->sc_kbcslot);
 
        if ((res = pms_alps_e6sig(psc, e6sig)) != 0)
-               goto err;
+               return res; /* This is not ALPS device */
 
        if ((res = pms_alps_e7sig(psc, e7sig)) != 0)
                goto err;



Home | Main Index | Thread Index | Old Index