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:
parent
9c087c5a19
commit
217c0da373
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208021
@ -820,7 +820,7 @@ int
|
|||||||
usb_find_busses(void)
|
usb_find_busses(void)
|
||||||
{
|
{
|
||||||
usb_busses = &usb_global_bus;
|
usb_busses = &usb_global_bus;
|
||||||
return (0);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -907,7 +907,7 @@ usb_find_devices(void)
|
|||||||
LIST_ADD(usb_global_bus.devices, udev);
|
LIST_ADD(usb_global_bus.devices, udev);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (0); /* success */
|
return (devnum - 1); /* success */
|
||||||
}
|
}
|
||||||
|
|
||||||
struct usb_device *
|
struct usb_device *
|
||||||
|
Loading…
Reference in New Issue
Block a user