Fix return values for usb_find_busses() and usb_find_devices(). We should try

to return the actual number of busses and devices.

Reported by:	Mike Tancsa
Submitted by:	Hans Petter Selaksy
This commit is contained in:
Andrew Thompson 2010-05-13 00:26:30 +00:00
parent 9c087c5a19
commit 217c0da373
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208021

View File

@ -820,7 +820,7 @@ int
usb_find_busses(void)
{
usb_busses = &usb_global_bus;
return (0);
return (1);
}
int
@ -907,7 +907,7 @@ usb_find_devices(void)
LIST_ADD(usb_global_bus.devices, udev);
}
return (0); /* success */
return (devnum - 1); /* success */
}
struct usb_device *