summaryrefslogtreecommitdiff
path: root/sys/src/cmd/nusb/lib
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-07-31 15:29:08 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-07-31 15:29:08 +0200
commit56ac6ea29e1b9dfdad8c7b1875f81c242362da2a (patch)
treee467180119e9368bca5b957859bef4e82a906448 /sys/src/cmd/nusb/lib
parentb1d4e860642d13805e47ee5cf9f373d8c97d0bc4 (diff)
nusb/*: cleanup
Diffstat (limited to 'sys/src/cmd/nusb/lib')
-rw-r--r--sys/src/cmd/nusb/lib/dev.c2
-rw-r--r--sys/src/cmd/nusb/lib/usb.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/sys/src/cmd/nusb/lib/dev.c b/sys/src/cmd/nusb/lib/dev.c
index f7bcc04ae..cb79e1582 100644
--- a/sys/src/cmd/nusb/lib/dev.c
+++ b/sys/src/cmd/nusb/lib/dev.c
@@ -310,8 +310,6 @@ closedev(Dev *d)
if(d==nil || decref(d) != 0)
return;
dprint(2, "%s: closedev %#p %s\n", argv0, d, d->dir);
- if(d->free != nil)
- d->free(d->aux);
if(d->cfd >= 0)
close(d->cfd);
if(d->dfd >= 0)
diff --git a/sys/src/cmd/nusb/lib/usb.h b/sys/src/cmd/nusb/lib/usb.h
index 8fc30ab6b..4c90e8938 100644
--- a/sys/src/cmd/nusb/lib/usb.h
+++ b/sys/src/cmd/nusb/lib/usb.h
@@ -174,11 +174,10 @@ struct Dev
int dfd; /* descriptor for the data file */
int cfd; /* descriptor for the control file */
int isusb3; /* this is a usb3 device */
+ int depth; /* hub depth for usb3 hubs */
int maxpkt; /* cached from usb description */
- Ref nerrs; /* number of errors in requests */
Usbdev* usb; /* USB description */
void* aux; /* for the device driver */
- void (*free)(void*); /* idem. to release aux */
char* hname; /* hash name, unique for device */
};