]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
USB: serial: garmin_gps: drop unused timer initialisation
authorJohan Hovold <johan@kernel.org>
Wed, 11 Oct 2017 12:02:59 +0000 (14:02 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 11 Oct 2017 13:24:49 +0000 (15:24 +0200)
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>
drivers/usb/serial/garmin_gps.c

index 677558c99a97935c5296c73c345cc0ed2da937e4..d22a84c95c07a72284ebc2795c17b7a0fbd31654 100644 (file)
@@ -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;