diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-04-24 22:00:31 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-04-24 22:00:31 +0200 |
commit | 634b40fe279408a43d4a30de003c7b541d49645c (patch) | |
tree | 27bd2bb03e8e60c42948f183b611884f132b643b /sys/src/cmd/nusb | |
parent | 70d7f4c32ad5b334840bd986315b58f04e9cd102 (diff) |
nusb: use ep->addr instead of ep->id in unstall() library function
this is not a bug, but using ep->addr makes the intend more clear.
Diffstat (limited to 'sys/src/cmd/nusb')
-rw-r--r-- | sys/src/cmd/nusb/lib/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/nusb/lib/dev.c b/sys/src/cmd/nusb/lib/dev.c index 60d327e87..2b32ecd34 100644 --- a/sys/src/cmd/nusb/lib/dev.c +++ b/sys/src/cmd/nusb/lib/dev.c @@ -481,7 +481,7 @@ unstall(Dev *dev, Dev *ep, int dir) else dir = 0; r = Rh2d|Rstd|Rep; - if(usbcmd(dev, r, Rclearfeature, Fhalt, (ep->id&0xF)|dir, nil, 0)<0){ + if(usbcmd(dev, r, Rclearfeature, Fhalt, (ep->addr&0xF)|dir, nil, 0)<0){ werrstr("unstall: %s: %r", ep->dir); return -1; } |