From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:34:55 +0000 (+0100) Subject: usb: pwc-if free urb cleanup X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~55 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=90b2625a5159607e37871cd75370c189fc22d208;p=linux-2.6-omap-h63xx.git usb: pwc-if free urb cleanup - usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c index 83739b213e7..62070b9049e 100644 --- a/drivers/media/video/pwc/pwc-if.c +++ b/drivers/media/video/pwc/pwc-if.c @@ -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;