From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:35:02 +0000 (+0100) Subject: usb: quickcam_messenger free urb cleanup X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~53 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=926b1e90093688d91cbc358e5339ad2861c86e46;p=linux-2.6-omap-h63xx.git usb: quickcam_messenger free urb cleanup - usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/media/video/usbvideo/quickcam_messenger.c b/drivers/media/video/usbvideo/quickcam_messenger.c index 9a26b9484aa..bbf2beeeb44 100644 --- a/drivers/media/video/usbvideo/quickcam_messenger.c +++ b/drivers/media/video/usbvideo/quickcam_messenger.c @@ -190,8 +190,7 @@ static int qcm_alloc_int_urb(struct qcm *cam) static void qcm_free_int(struct qcm *cam) { - if (cam->button_urb) - usb_free_urb(cam->button_urb); + usb_free_urb(cam->button_urb); } #endif /* CONFIG_INPUT */