Re: [PATCH 03/18] lirc driver for 1st-gen Media Center Ed. USB IR transceivers
From: Jarod Wilson
Date: Tue Sep 09 2008 - 21:43:02 EST
On Tuesday 09 September 2008 19:59:32 Janne Grunau wrote:
> > > +static void mceusb_setup(struct usb_device *udev)
> > > +{
> > > + char data[8];
> > > + int res;
> > > +
> > > + memset(data, 0, 8);
> > > +
> > > + /* Get Status */
> > > + res = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
> > > + USB_REQ_GET_STATUS, USB_DIR_IN,
> > > + 0, 0, data, 2, HZ * 3);
> >
> > res is set many times in this function, but it is never checked. It
> > seems to me like the addition of some error handling would be a good
> > idea.
>
> sigh, It would be a good idea, not sure if I'm motivated enough to add
> that to a driver I can't test and I know almost nothing about.
I'll take a look, I've at least got the hardware to test with.
--
Jarod Wilson
jarod@xxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/