ChangeSet 1.1867.3.29, 2004/09/21 10:36:25-07:00, [EMAIL PROTECTED]

[PATCH] USB: remove calls to usb_unlink_urb in media/konicawc.c

   since usb_kill_urb is a void function, the checking of the return status
   had to go too.

Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/media/konicawc.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)


diff -Nru a/drivers/usb/media/konicawc.c b/drivers/usb/media/konicawc.c
--- a/drivers/usb/media/konicawc.c      2004-10-19 08:12:00 -07:00
+++ b/drivers/usb/media/konicawc.c      2004-10-19 08:12:00 -07:00
@@ -474,13 +474,8 @@
 
        /* Unschedule all of the iso td's */
        for (i=0; i < USBVIDEO_NUMSBUF; i++) {
-               j = usb_unlink_urb(uvd->sbuf[i].urb);
-               if (j < 0)
-                       err("usb_unlink_urb() error %d.", j);
-
-               j = usb_unlink_urb(cam->sts_urb[i]);
-               if (j < 0)
-                       err("usb_unlink_urb() error %d.", j);
+               usb_kill_urb(uvd->sbuf[i].urb);
+               usb_kill_urb(cam->sts_urb[i]);
        }
 
        if (!uvd->remove_pending) {



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to