summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pwc
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2006-11-08 15:34:55 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 23:23:32 +0100
commit90b2625a5159607e37871cd75370c189fc22d208 (patch)
tree1b640147644a9d62dda860bcf7fd9788446fe1e0 /drivers/media/video/pwc
parentusb: pvrusb2-io free urb cleanup (diff)
downloadlinux-90b2625a5159607e37871cd75370c189fc22d208.tar.xz
linux-90b2625a5159607e37871cd75370c189fc22d208.zip
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>
Diffstat (limited to 'drivers/media/video/pwc')
-rw-r--r--drivers/media/video/pwc/pwc-if.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c
index 83739b213e7f..62070b9049eb 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;