"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "drivers/input/joystick/iforce/iforce-usb.c" between
linux-5.3-rc3.tar.gz and linux-5.3-rc4.tar.gz

About: The full source of the development Linux kernel 5.3 (release candidate).

iforce-usb.c  (linux-5.3-rc3):iforce-usb.c  (linux-5.3-rc4)
skipping to change at line 204 skipping to change at line 204
struct usb_endpoint_descriptor *epirq, *epout; struct usb_endpoint_descriptor *epirq, *epout;
struct iforce_usb *iforce_usb; struct iforce_usb *iforce_usb;
int err = -ENOMEM; int err = -ENOMEM;
interface = intf->cur_altsetting; interface = intf->cur_altsetting;
if (interface->desc.bNumEndpoints < 2) if (interface->desc.bNumEndpoints < 2)
return -ENODEV; return -ENODEV;
epirq = &interface->endpoint[0].desc; epirq = &interface->endpoint[0].desc;
if (!usb_endpoint_is_int_in(epirq))
return -ENODEV;
epout = &interface->endpoint[1].desc; epout = &interface->endpoint[1].desc;
if (!usb_endpoint_is_int_out(epout))
return -ENODEV;
iforce_usb = kzalloc(sizeof(*iforce_usb), GFP_KERNEL); iforce_usb = kzalloc(sizeof(*iforce_usb), GFP_KERNEL);
if (!iforce_usb) if (!iforce_usb)
goto fail; goto fail;
iforce_usb->irq = usb_alloc_urb(0, GFP_KERNEL); iforce_usb->irq = usb_alloc_urb(0, GFP_KERNEL);
if (!iforce_usb->irq) if (!iforce_usb->irq)
goto fail; goto fail;
iforce_usb->out = usb_alloc_urb(0, GFP_KERNEL); iforce_usb->out = usb_alloc_urb(0, GFP_KERNEL);
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)