mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
USB: serial: ti_usb_3410_5052: clean up serial data access
Use the tdev pointer directly instead of going through the port data when accessing the serial data in close(). Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
6f1d1dc8d5
commit
bc25770f00
1 changed files with 2 additions and 2 deletions
|
@ -800,8 +800,8 @@ static void ti_close(struct usb_serial_port *port)
|
|||
, __func__, status);
|
||||
|
||||
mutex_lock(&tdev->td_open_close_lock);
|
||||
--tport->tp_tdev->td_open_port_count;
|
||||
if (tport->tp_tdev->td_open_port_count == 0) {
|
||||
--tdev->td_open_port_count;
|
||||
if (tdev->td_open_port_count == 0) {
|
||||
/* last port is closed, shut down interrupt urb */
|
||||
usb_kill_urb(port->serial->port[0]->interrupt_in_urb);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue