Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Remove unnecessary attachment arg pointer d...
details: https://anonhg.NetBSD.org/src/rev/2149cfb90948
branches: nick-nhusb
changeset: 334163:2149cfb90948
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Mar 21 10:07:15 2015 +0000
description:
Remove unnecessary attachment arg pointer dance.
diffstat:
sys/dev/usb/uyurex.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 236c5549ef18 -r 2149cfb90948 sys/dev/usb/uyurex.c
--- a/sys/dev/usb/uyurex.c Sat Mar 21 09:42:37 2015 +0000
+++ b/sys/dev/usb/uyurex.c Sat Mar 21 10:07:15 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uyurex.c,v 1.9.14.2 2015/03/19 17:26:43 skrll Exp $ */
+/* $NetBSD: uyurex.c,v 1.9.14.3 2015/03/21 10:07:15 skrll Exp $ */
/* $OpenBSD: uyurex.c,v 1.3 2010/03/04 03:47:22 deraadt Exp $ */
/*
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uyurex.c,v 1.9.14.2 2015/03/19 17:26:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uyurex.c,v 1.9.14.3 2015/03/21 10:07:15 skrll Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -116,8 +116,7 @@
int
uyurex_match(device_t parent, cfdata_t match, void *aux)
{
- struct usb_attach_arg *uaa = aux;
- struct uhidev_attach_arg *uha = (struct uhidev_attach_arg *)uaa;
+ struct uhidev_attach_arg *uha = aux;
if (uyurex_lookup(uha->uaa->vendor, uha->uaa->product) == NULL)
return UMATCH_NONE;
@@ -129,8 +128,7 @@
uyurex_attach(device_t parent, device_t self, void *aux)
{
struct uyurex_softc *sc = device_private(self);
- struct usb_attach_arg *uaa = aux;
- struct uhidev_attach_arg *uha = (struct uhidev_attach_arg *)uaa;
+ struct uhidev_attach_arg *uha = aux;
struct usbd_device * dev = uha->parent->sc_udev;
int size, repid, err;
void *desc;
Home |
Main Index |
Thread Index |
Old Index