serial: m32r_sio: Drop redundant .data assignment
authorKees Cook <keescook@chromium.org>
Tue, 24 Oct 2017 09:59:40 +0000 (02:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Nov 2017 11:38:04 +0000 (12:38 +0100)
With the timer converted to using the new timer_setup()/from_timer() API,
setting the .data field is redundant (and the field will be removed soon),
so drop it.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: linux-serial@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/m32r_sio.c

index 5f4003ad32b6ed405c50f9bf70a21a0bee5497c5..0bc548adae52f2617a0a6260a4ea9465675dfc5e 100644 (file)
@@ -576,7 +576,6 @@ static int m32r_sio_startup(struct uart_port *port)
 
                timeout = timeout > 6 ? (timeout / 2 - 2) : 1;
 
-               up->timer.data = (unsigned long)up;
                mod_timer(&up->timer, jiffies + timeout);
        } else {
                retval = serial_link_irq_chain(up);