From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:34:59 +0000 (+0100) Subject: usb: sn9c102_core free urb cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14d2707b80d6a9d1e8e92718885f99b77531b339;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git usb: sn9c102_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/sn9c102/sn9c102_core.c b/drivers/media/video/sn9c102/sn9c102_core.c index 42fb60d985b9..18458d46c0ff 100644 --- a/drivers/media/video/sn9c102/sn9c102_core.c +++ b/drivers/media/video/sn9c102/sn9c102_core.c @@ -775,7 +775,7 @@ static int sn9c102_start_transfer(struct sn9c102_device* cam) return 0; free_urbs: - for (i = 0; (i < SN9C102_URBS) && cam->urb[i]; i++) + for (i = 0; i < SN9C102_URBS; i++) usb_free_urb(cam->urb[i]); free_buffers: