usb: pwc-if free urb cleanup

- usb_free_urb() cleanup

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Mariusz Kozlowski 2006-11-08 15:34:55 +01:00 committed by Greg Kroah-Hartman
parent 4c6f7d4a88
commit 90b2625a51

View File

@ -867,8 +867,7 @@ int pwc_isoc_init(struct pwc_device *pdev)
if (ret) {
/* De-allocate in reverse order */
while (i--) {
if (pdev->sbuf[i].urb != NULL)
usb_free_urb(pdev->sbuf[i].urb);
usb_free_urb(pdev->sbuf[i].urb);
pdev->sbuf[i].urb = NULL;
}
return ret;