lkml.org 
[lkml]   [2008]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 03/18] lirc driver for 1st-gen Media Center Ed. USB IR transceivers
Date
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@redhat.com

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-09-10 03:45    [W:0.096 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site