diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-12-17 13:48:07 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-12-17 13:48:07 +0000 |
commit | 99ced48cb99b859e75f45d4109466d8e90681de4 (patch) | |
tree | fcca16cd8c4dab6ff8213da3041c4fa75cbb8839 /sys/dev/usb/if_cue.c | |
parent | 91d35287430f58e51bdea4466b5a8ab045f7b257 (diff) |
- use usb_lookup() instead of handrolled macro.
ok jakemsr@
Diffstat (limited to 'sys/dev/usb/if_cue.c')
-rw-r--r-- | sys/dev/usb/if_cue.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index 401c775544b..16959425ceb 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cue.c,v 1.57 2010/12/06 04:41:39 jakemsr Exp $ */ +/* $OpenBSD: if_cue.c,v 1.58 2010/12/17 13:48:06 jasper Exp $ */ /* $NetBSD: if_cue.c,v 1.40 2002/07/11 21:14:26 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -107,7 +107,6 @@ struct usb_devno cue_devs[] = { { USB_VENDOR_SMARTBRIDGES, USB_PRODUCT_SMARTBRIDGES_SMARTLINK }, /* Belkin F5U111 adapter covered by NETMATE entry */ }; -#define cue_lookup(v, p) (usb_lookup(cue_devs, v, p)) int cue_match(struct device *, void *, void *); void cue_attach(struct device *, struct device *, void *); @@ -434,8 +433,8 @@ cue_match(struct device *parent, void *match, void *aux) if (uaa->iface != NULL) return (UMATCH_NONE); - return (cue_lookup(uaa->vendor, uaa->product) != NULL ? - UMATCH_VENDOR_PRODUCT : UMATCH_NONE); + return (usb_lookup(cue_devs, uaa->vendor, uaa->product) != NULL ? + UMATCH_VENDOR_PRODUCT : UMATCH_NONE); } /* |