~mcf/plan9front

67750a093ffbcd597fd8e98ec48648e5631a9b6e — cinap_lenrek 2 years ago bea20cd
nusb/ether: use setalt()
1 files changed, 1 insertions(+), 5 deletions(-)

M sys/src/cmd/nusb/ether/ether.c
M sys/src/cmd/nusb/ether/ether.c => sys/src/cmd/nusb/ether/ether.c +1 -5
@@ 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