From 41df7313df62a4ae7b7a41fc9da37d30854bffac Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sat, 15 Mar 2014 09:50:27 +0000 Subject: Remove debug leftover. --- sys/dev/usb/uhidev.c | 9 ++------- sys/dev/usb/uhidev.h | 3 +-- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c index 064dca8ea87..a7b2bee2ec5 100644 --- a/sys/dev/usb/uhidev.c +++ b/sys/dev/usb/uhidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidev.c,v 1.52 2014/02/25 15:49:10 mpi Exp $ */ +/* $OpenBSD: uhidev.c,v 1.53 2014/03/15 09:50:26 mpi Exp $ */ /* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -279,7 +279,6 @@ uhidev_attach(struct device *parent, struct device *self, void *aux) uhidevprint, uhidevsubmatch); sc->sc_subdevs[repid] = dev; if (dev != NULL) { - dev->sc_in_rep_size = repsizes[repid]; #ifdef DIAGNOSTIC DPRINTF(("uhidev_match: repid=%d dev=%p\n", repid, dev)); @@ -438,11 +437,7 @@ uhidev_intr(struct usbd_xfer *xfer, void *addr, usbd_status status) rep, scd, scd ? scd->sc_state : 0)); if (scd == NULL || !(scd->sc_state & UHIDEV_OPEN)) return; -#ifdef UHIDEV_DEBUG - if (scd->sc_in_rep_size != cc) - printf("%s: bad input length %d != %d\n",sc->sc_dev.dv_xname, - scd->sc_in_rep_size, cc); -#endif + scd->sc_intr(scd, p, cc); } diff --git a/sys/dev/usb/uhidev.h b/sys/dev/usb/uhidev.h index 231d3cc3fea..b5f24b19113 100644 --- a/sys/dev/usb/uhidev.h +++ b/sys/dev/usb/uhidev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidev.h,v 1.16 2013/11/19 14:04:07 pirofti Exp $ */ +/* $OpenBSD: uhidev.h,v 1.17 2014/03/15 09:50:26 mpi Exp $ */ /* $NetBSD: uhidev.h,v 1.3 2002/10/08 09:56:17 dan Exp $ */ /* @@ -68,7 +68,6 @@ struct uhidev { struct uhidev_softc *sc_parent; uByte sc_report_id; u_int8_t sc_state; - int sc_in_rep_size; #define UHIDEV_OPEN 0x01 /* device is open */ void (*sc_intr)(struct uhidev *, void *, u_int); -- cgit v1.2.3