Skip to contentSkip to conversation

serial: m32r_sio: Drop redundant .data assignment

PATCH New Kees Cook 1 participant 1 message Oct 24, 2017 TTY layer and serial drivers

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 serial: m32r_sio: Drop redundant .data assignment

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 <[email protected]>
Cc Jiri Slaby <[email protected]>
---
 drivers/tty/serial/m32r_sio.c | 1 -
 1 file changed, 1 deletion(-)
drivers/tty/serial/m32r_sio.c +0 -1
index 5f4003ad32b6..0bc548adae52 100644
@@ -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);
Signature · 6 lines
2.7.4


-- 
Kees Cook
Pixel Security