From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:34:59 +0000 (+0100) Subject: usb: sn9c102_core free urb cleanup X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=14d2707b80d6a9d1e8e92718885f99b77531b339;p=openwrt%2Fstaging%2Fblogic.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: