From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:35:12 +0000 (+0100) Subject: usb: zc0301_core free urb cleanup X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~52 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8563650da0fb2df5755ea133d5fb182ded9d2ae8;p=linux-2.6-omap-h63xx.git usb: zc0301_core free urb cleanup - usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/media/video/zc0301/zc0301_core.c b/drivers/media/video/zc0301/zc0301_core.c index 5b556342442..52d0f759ee0 100644 --- a/drivers/media/video/zc0301/zc0301_core.c +++ b/drivers/media/video/zc0301/zc0301_core.c @@ -489,7 +489,7 @@ static int zc0301_start_transfer(struct zc0301_device* cam) return 0; free_urbs: - for (i = 0; (i < ZC0301_URBS) && cam->urb[i]; i++) + for (i = 0; i < ZC0301_URBS; i++) usb_free_urb(cam->urb[i]); free_buffers: