From 42d69dd63e7d6a50948fca5e13680070efa58b13 Mon Sep 17 00:00:00 2001 From: Takanori Watanabe Date: Sat, 9 Oct 2004 07:48:31 +0000 Subject: [PATCH] Don't use matchlvl attach arg. It seems to be not initialized in FreeBSD probe mechanism. --- sys/dev/usb/uhid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index 325896332c01..4c287af11879 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -191,8 +191,11 @@ USB_MATCH(uhid) id = usbd_get_interface_descriptor(uaa->iface); if (id == NULL || id->bInterfaceClass != UICLASS_HID) return (UMATCH_NONE); +#if 0 if (uaa->matchlvl) return (uaa->matchlvl); +#endif + return (UMATCH_IFACECLASS_GENERIC); }