From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:34:02 +0000 (+0100) Subject: usb: pcwd_usb free urb cleanup X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~62 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6265d62f31e42cc839f929439a95f602d70d6bf7;p=linux-2.6-omap-h63xx.git usb: pcwd_usb free urb cleanup - usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/watchdog/pcwd_usb.c b/drivers/char/watchdog/pcwd_usb.c index bda45334d80..e275dd4a705 100644 --- a/drivers/char/watchdog/pcwd_usb.c +++ b/drivers/char/watchdog/pcwd_usb.c @@ -561,8 +561,7 @@ static struct notifier_block usb_pcwd_notifier = { */ static inline void usb_pcwd_delete (struct usb_pcwd_private *usb_pcwd) { - if (usb_pcwd->intr_urb != NULL) - usb_free_urb (usb_pcwd->intr_urb); + usb_free_urb(usb_pcwd->intr_urb); if (usb_pcwd->intr_buffer != NULL) usb_buffer_free(usb_pcwd->udev, usb_pcwd->intr_size, usb_pcwd->intr_buffer, usb_pcwd->intr_dma);