From b70ce41c22de7e2281a07553ebb61643145ed28a Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 26 Apr 2007 17:00:29 +0000 Subject: USB device lists do not need a terminating sentinel, so don't provide any; this should prevent phantom devices from attaching axe or uberry on some machines. ok deraadt@ --- sys/dev/usb/uts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/uts.c') diff --git a/sys/dev/usb/uts.c b/sys/dev/usb/uts.c index fc933bd9bea..ce8408c14df 100644 --- a/sys/dev/usb/uts.c +++ b/sys/dev/usb/uts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uts.c,v 1.4 2007/04/25 14:17:42 robert Exp $ */ +/* $OpenBSD: uts.c,v 1.5 2007/04/26 17:00:28 miod Exp $ */ /* * Copyright (c) 2007 Robert Nagy @@ -97,8 +97,7 @@ struct uts_pos { Static const struct usb_devno uts_devs[] = { { USB_VENDOR_FTDI, USB_PRODUCT_FTDI_ITM_TOUCH }, { USB_VENDOR_EGALAX, USB_PRODUCT_EGALAX_TPANEL }, - { USB_VENDOR_EGALAX, USB_PRODUCT_EGALAX_TPANEL2 }, - { 0, 0 } + { USB_VENDOR_EGALAX, USB_PRODUCT_EGALAX_TPANEL2 } }; Static void uts_intr(usbd_xfer_handle, usbd_private_handle, usbd_status); -- cgit v1.2.3