Skip to content

Commit

Permalink
usb: io_edgeport kill urb cleanup
Browse files Browse the repository at this point in the history
- usb_kill_urb() cleanup

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent c69694b commit 9a25f44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/usb/serial/io_edgeport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,9 +1038,7 @@ static void edge_close (struct usb_serial_port *port, struct file * filp)
edge_port->open = FALSE;
edge_port->openPending = FALSE;

if (edge_port->write_urb) {
usb_kill_urb(edge_port->write_urb);
}
usb_kill_urb(edge_port->write_urb);

if (edge_port->write_urb) {
/* if this urb had a transfer buffer already (old transfer) free it */
Expand Down

0 comments on commit 9a25f44

Please sign in to comment.