View | Details | Raw Unified | Return to bug 220852
Collapse All | Expand All

(-)sys/dev/usb/net/if_urndis.c (+5 lines)
Lines 245-250 Link Here
245
245
246
	mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
246
	mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
247
247
248
retry:
248
	/* scan the alternate settings looking for a valid one */
249
	/* scan the alternate settings looking for a valid one */
249
	for (i = 0; i != 32; i++) {
250
	for (i = 0; i != 32; i++) {
250
		error = usbd_set_alt_interface_index(uaa->device,
251
		error = usbd_set_alt_interface_index(uaa->device,
Lines 261-266 Link Here
261
			break;
262
			break;
262
	}
263
	}
263
	if ((error != 0) || (i == 32)) {
264
	if ((error != 0) || (i == 32)) {
265
		if (iface_index[0] != iface_index[1]) {
266
			iface_index[0] = iface_index[1];
267
			goto retry;
268
		}
264
		device_printf(dev, "No valid alternate setting found\n");
269
		device_printf(dev, "No valid alternate setting found\n");
265
		goto detach;
270
		goto detach;
266
	}
271
	}

Return to bug 220852