summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/garmin_gps.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-10-11 14:02:59 +0200
committerJohan Hovold <johan@kernel.org>2017-10-11 15:24:49 +0200
commitb943cee8a5294d4d0e30528ed5f776aefd2b6fc3 (patch)
treee8f2d1e2ac034f6fec8ce846213fe767fa9c3f47 /drivers/usb/serial/garmin_gps.c
parentUSB: serial: garmin_gps: fix memory leak on probe errors (diff)
downloadlinux-b943cee8a5294d4d0e30528ed5f776aefd2b6fc3.tar.xz
linux-b943cee8a5294d4d0e30528ed5f776aefd2b6fc3.zip
USB: serial: garmin_gps: drop unused timer initialisation
Drop out-commented timer expiry initialisation which would not even compile anymore. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/garmin_gps.c')
-rw-r--r--drivers/usb/serial/garmin_gps.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c
index 677558c99a97..d22a84c95c07 100644
--- a/drivers/usb/serial/garmin_gps.c
+++ b/drivers/usb/serial/garmin_gps.c
@@ -1402,7 +1402,6 @@ static int garmin_port_probe(struct usb_serial_port *port)
timer_setup(&garmin_data_p->timer, timeout_handler, 0);
spin_lock_init(&garmin_data_p->lock);
INIT_LIST_HEAD(&garmin_data_p->pktlist);
- /* garmin_data_p->timer.expires = jiffies + session_timeout; */
garmin_data_p->port = port;
garmin_data_p->state = 0;
garmin_data_p->flags = 0;