summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uts.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-04-26 17:00:28 +0000
committermiod <miod@openbsd.org>2007-04-26 17:00:28 +0000
commit14b67a9184086c5a4b326b870dbc5799ab4e524d (patch)
tree012146943f902f993091c8cb256b1dd3f3bcc801 /sys/dev/usb/uts.c
parentput RFC 3765 in the right place; (diff)
downloadwireguard-openbsd-14b67a9184086c5a4b326b870dbc5799ab4e524d.tar.xz
wireguard-openbsd-14b67a9184086c5a4b326b870dbc5799ab4e524d.zip
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@
Diffstat (limited to 'sys/dev/usb/uts.c')
-rw-r--r--sys/dev/usb/uts.c5
1 files changed, 2 insertions, 3 deletions
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 <robert@openbsd.org>
@@ -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);