summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-02-23 18:01:15 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-02-23 18:01:15 +0000
commit67750a093ffbcd597fd8e98ec48648e5631a9b6e (patch)
tree2599ef27967673496048e86a7dd99f3aa058ca5a /sys
parentbea20cd152066c1deee6f1acbf68cf1fcc569927 (diff)
nusb/ether: use setalt()
Diffstat (limited to 'sys')
-rw-r--r--sys/src/cmd/nusb/ether/ether.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/src/cmd/nusb/ether/ether.c b/sys/src/cmd/nusb/ether/ether.c
index b5aaf191c..dfac87458 100644
--- a/sys/src/cmd/nusb/ether/ether.c
+++ b/sys/src/cmd/nusb/ether/ether.c
@@ -610,13 +610,9 @@ ifaceinit(Dev *d, Iface *iface, Ep **ein, Ep **eout)
*eout = ep;
}
if(*ein != nil && *eout != nil)
- goto Found;
+ return setalt(d, iface);
}
return -1;
-Found:
- if(usbcmd(d, Rh2d|Rstd|Riface, Rsetiface, iface->alt, iface->id, nil, 0) < 0)
- dprint(2, "%s: setalt ifc %d alt %d: %r\n", argv0, iface->id, iface->alt);
- return 0;
}
int