Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pckbport Cosemetically "fix" the pckbd_attach() retu...



details:   https://anonhg.NetBSD.org/src/rev/e31844286168
branches:  trunk
changeset: 790016:e31844286168
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 09:24:05 2013 +0000

description:
Cosemetically "fix" the pckbd_attach() return value, so gcc can see the
value is used (no functional change)

diffstat:

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

diffs (27 lines):

diff -r 01cca9c6fdd3 -r e31844286168 sys/dev/pckbport/pckbd.c
--- a/sys/dev/pckbport/pckbd.c  Sun Sep 15 09:21:21 2013 +0000
+++ b/sys/dev/pckbport/pckbd.c  Sun Sep 15 09:24:05 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pckbd.c,v 1.30 2012/10/13 17:51:28 jdc Exp $ */
+/* $NetBSD: pckbd.c,v 1.31 2013/09/15 09:24:05 martin Exp $ */
 
 /*-
  * Copyright (c) 1998, 2009 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.30 2012/10/13 17:51:28 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.31 2013/09/15 09:24:05 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1081,7 +1081,7 @@
 
        wskbd_cnattach(&pckbd_consops, &pckbd_consdata, &pckbd_keymapdata);
 
-       return 0;
+       return res;
 }
 
 /* ARGSUSED */



Home | Main Index | Thread Index | Old Index