Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361642
b: refs/heads/master
c: 618aa10
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Mar 21, 2013
1 parent 38614a1 commit 74a9401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb25505fc604292c70fc02143fc102f54c8595f0
refs/heads/master: 618aa1068df29c37a58045fe940f9106664153fd
7 changes: 1 addition & 6 deletions trunk/drivers/usb/serial/garmin_gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,10 +956,7 @@ static void garmin_close(struct usb_serial_port *port)
if (!serial)
return;

mutex_lock(&port->serial->disc_mutex);

if (!port->serial->disconnected)
garmin_clear(garmin_data_p);
garmin_clear(garmin_data_p);

/* shutdown our urbs */
usb_kill_urb(port->read_urb);
Expand All @@ -968,8 +965,6 @@ static void garmin_close(struct usb_serial_port *port)
/* keep reset state so we know that we must start a new session */
if (garmin_data_p->state != STATE_RESET)
garmin_data_p->state = STATE_DISCONNECTED;

mutex_unlock(&port->serial->disc_mutex);
}


Expand Down

0 comments on commit 74a9401

Please sign in to comment.