Don't use matchlvl attach arg. It seems to be not initialized

in FreeBSD probe mechanism.
This commit is contained in:
Takanori Watanabe 2004-10-09 07:48:31 +00:00
parent e60fc88fa6
commit 42d69dd63e

View File

@ -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);
}