~mcf/plan9front

045936a778acc6202d87c16834054e66833eacc3 — cinap_lenrek 2 years ago 8bf71ad
nusb/cam: fix mistake (nil vs -1)
1 files changed, 1 insertions(+), 1 deletions(-)

M sys/src/cmd/nusb/cam/video.c
M sys/src/cmd/nusb/cam/video.c => sys/src/cmd/nusb/cam/video.c +1 -1
@@ 278,7 278,7 @@ err:
	if(usbcmd(d, 0x21, SET_CUR, VS_COMMIT_CONTROL << 8, c->iface->id, (uchar *) &c->pc, sizeof(ProbeControl)) < sizeof(ProbeControl)) goto err;
	e = selbw(c, &c->pc, d->usb->ep[c->hdr->bEndpointAddress & Epmax]);
	if(e == nil || setalt(c->dev, e->iface) < 0)
		return nil;
		return -1;
	c->ep = openep(d, e);
	if(c->ep == nil){
		setalt(d, c->iface);