lkml.org 
[lkml]   [2014]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH resend 2/2] usb: serial: xsens_mt: always bind to interface number 1
On Thu, Sep 04, 2014 at 09:12:05AM +0200, Frans Klaver wrote:

> > static int xsens_mt_probe(struct usb_serial *serial,
> > const struct usb_device_id *id)
> > {
> > - if (!has_required_endpoints(serial->interface->cur_altsetting))
> > - return -ENODEV;
> > - return 0;
> > + if (serial->interface->cur_altsetting.desc.bInterfaceNumber == 1)
>
> This should be
>
> if (serial->interface->cur_altsetting->desc.bInterfaceNumber == 1)

So this wasn't even compile tested. Always test your patches before
submission, including trivial ones.

Is the new version tested on actual hardware?

Johan


\
 
 \ /
  Last update: 2014-09-04 10:41    [W:0.058 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site