Re: usb(4) correct return value

2012-05-14 Thread Paul Irofti
On Sat, May 12, 2012 at 11:53:31AM +0200, Martin Pieuchot wrote: > When doing an USB_REQUEST on a usb(4) node, returns ENXIO if the device > at the specified address is not found, like it's done for USB_DEVICEINFO. > > With this change it's possible to know if the specified address isn't > valid

usb(4) correct return value

2012-05-12 Thread Martin Pieuchot
When doing an USB_REQUEST on a usb(4) node, returns ENXIO if the device at the specified address is not found, like it's done for USB_DEVICEINFO. With this change it's possible to know if the specified address isn't valid (EINVAL) or has no device associated (ENXIO). Ok? Index: usb.c ==