From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:35:12 +0000 (+0100) Subject: usb: zc0301_core free urb cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8563650da0fb2df5755ea133d5fb182ded9d2ae8;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 5b5563424422..52d0f759ee00 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: