From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:35:50 +0000 (+0100) Subject: usb: ati_remote2 free urb cleanup X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~48 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2381526a793582ad18b30af0e3013ccad1a8bcdb;p=linux-2.6-omap-h63xx.git usb: ati_remote2 free urb cleanup Hello, - usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/input/ati_remote2.c b/drivers/usb/input/ati_remote2.c index f982a2b4a7f..83f1f79db7c 100644 --- a/drivers/usb/input/ati_remote2.c +++ b/drivers/usb/input/ati_remote2.c @@ -372,8 +372,7 @@ static void ati_remote2_urb_cleanup(struct ati_remote2 *ar2) int i; for (i = 0; i < 2; i++) { - if (ar2->urb[i]) - usb_free_urb(ar2->urb[i]); + usb_free_urb(ar2->urb[i]); if (ar2->buf[i]) usb_buffer_free(ar2->udev, 4, ar2->buf[i], ar2->buf_dma[i]);