diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2006-11-08 14:36:42 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-01 22:23:34 (GMT) |
commit | 73135bb9154f9565e8ae294ffa73f9e871d72b47 (patch) | |
tree | e3e8abd3482fee9ed0bf289d5a5160c41fe58bab /drivers/usb/serial/mct_u232.c | |
parent | 5505c2261eb5e7a6ff851afbe7f77d54d960e83b (diff) | |
download | linux-73135bb9154f9565e8ae294ffa73f9e871d72b47.tar.xz |
usb: mct_u232 free urb cleanup
- usb_free_urb() cleanup
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/mct_u232.c')
-rw-r--r-- | drivers/usb/serial/mct_u232.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index b7582cc..a906e50 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; |