From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:36:42 +0000 (+0100) Subject: usb: mct_u232 free urb cleanup X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~36 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=73135bb9154f9565e8ae294ffa73f9e871d72b47;p=linux-2.6-omap-h63xx.git usb: mct_u232 free urb cleanup - usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index b7582cc496d..a906e500a02 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c @@ -358,10 +358,8 @@ static int mct_u232_startup (struct usb_serial *serial) /* Puh, that's dirty */ port = serial->port[0]; rport = serial->port[1]; - if (port->read_urb) { - /* No unlinking, it wasn't submitted yet. */ - usb_free_urb(port->read_urb); - } + /* No unlinking, it wasn't submitted yet. */ + usb_free_urb(port->read_urb); port->read_urb = rport->interrupt_in_urb; rport->interrupt_in_urb = NULL; port->read_urb->context = port;