Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Remove non existent include of opt_uatp_debug.h ...



details:   https://anonhg.NetBSD.org/src/rev/284dce0ae729
branches:  trunk
changeset: 783704:284dce0ae729
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jan 05 08:01:13 2013 +0000

description:
Remove non existent include of opt_uatp_debug.h and unused variable
(if !UATP_DEBUG).

diffstat:

 sys/dev/usb/uatp.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (33 lines):

diff -r 11e07f02e7b0 -r 284dce0ae729 sys/dev/usb/uatp.c
--- a/sys/dev/usb/uatp.c        Sat Jan 05 01:32:50 2013 +0000
+++ b/sys/dev/usb/uatp.c        Sat Jan 05 08:01:13 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uatp.c,v 1.2 2013/01/05 01:30:16 christos Exp $        */
+/*     $NetBSD: uatp.c,v 1.3 2013/01/05 08:01:13 martin Exp $  */
 
 /*-
  * Copyright (c) 2011, 2012 Taylor R. Campbell
@@ -143,11 +143,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.2 2013/01/05 01:30:16 christos Exp $");
-
-#ifdef _KERNEL_OPT
-#include "opt_uatp_debug.h"
-#endif
+__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.3 2013/01/05 08:01:13 martin Exp $");
 
 #include <sys/atomic.h>
 #include <sys/device.h>
@@ -1278,9 +1274,8 @@
 static int
 uatp_ioctl(void *v, unsigned long cmd, void *data, int flag, struct lwp *p)
 {
-       struct uatp_softc *sc = v;
 
-       DPRINTF(sc, UATP_DEBUG_IOCTL,
+       DPRINTF((struct uatp_softc*)v, UATP_DEBUG_IOCTL,
            ("cmd %lx, data %p, flag %x, lwp %p\n", cmd, data, flag, p));
 
        /* XXX Implement any relevant wsmouse(4) ioctls.  */



Home | Main Index | Thread Index | Old Index