diff options
author | 2010-12-17 13:48:06 +0000 | |
---|---|---|
committer | 2010-12-17 13:48:06 +0000 | |
commit | 64ad96997e6dfd048b61b6207b8f7e95e5aca6f7 (patch) | |
tree | ef9bc2069d782867e5b078cb17fe5feab1b98263 /sys/dev/usb/if_kue.c | |
parent | Unbreak simple passwords with SHA and salted SHA hashes. Revision 1.7 (diff) | |
download | wireguard-openbsd-64ad96997e6dfd048b61b6207b8f7e95e5aca6f7.tar.xz wireguard-openbsd-64ad96997e6dfd048b61b6207b8f7e95e5aca6f7.zip |
- use usb_lookup() instead of handrolled macro.
ok jakemsr@
Diffstat (limited to 'sys/dev/usb/if_kue.c')
-rw-r--r-- | sys/dev/usb/if_kue.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c index ccf0b8fe8e0..43cc076aab4 100644 --- a/sys/dev/usb/if_kue.c +++ b/sys/dev/usb/if_kue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_kue.c,v 1.61 2010/10/27 17:51:11 jakemsr Exp $ */ +/* $OpenBSD: if_kue.c,v 1.62 2010/12/17 13:48:06 jasper Exp $ */ /* $NetBSD: if_kue.c,v 1.50 2002/07/16 22:00:31 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -152,7 +152,6 @@ const struct usb_devno kue_devs[] = { { USB_VENDOR_SILICOM, USB_PRODUCT_SILICOM_GPE }, { USB_VENDOR_SMC, USB_PRODUCT_SMC_2102USB }, }; -#define kue_lookup(v, p) (usb_lookup(kue_devs, v, p)) int kue_match(struct device *, void *, void *); void kue_attach(struct device *, struct device *, void *); @@ -408,8 +407,8 @@ kue_match(struct device *parent, void *match, void *aux) if (uaa->iface != NULL) return (UMATCH_NONE); - return (kue_lookup(uaa->vendor, uaa->product) != NULL ? - UMATCH_VENDOR_PRODUCT : UMATCH_NONE); + return (usb_lookup(kue_devs, uaa->vendor, uaa->product) != NULL ? + UMATCH_VENDOR_PRODUCT : UMATCH_NONE); } void |