Quirk for a USB mass storage device

Hans Petter Selasky hselasky at c2i.net
Sun Oct 30 20:18:44 UTC 2011


On Saturday 29 October 2011 20:38:07 Pawel Jakub Dawidek wrote:
> > +     err = usbd_do_request(udev, NULL, &req, &buf);
> > +     if (err)
> > +             buf = 0;
> > +
> > +     return (buf);
> > +}
> 
> You could drop 'err' variable and just check function return directly.
> There is only one extra empty line at the begining of the function.

No, because there is &buf.

I'll add your device to the device quirk list.

--HPS


More information about the freebsd-usb mailing list