aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2011-03-23 04:49:55 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-19 17:41:47 -0400
commit4fd53ef5c97ef7ce909c18bf7fb8b5cdd72b08c1 (patch)
tree9ccc3760aa281726e9b66c1920288d4ae3653d21
parent52ea383aba4d86d213622b2d4a94b01b4439fe11 (diff)
TTY: serial_core, remove unused variable
drivers/tty/serial/serial_core.c:1980:2: warning: Value stored to 'tty' is never read tty = port->tty; ^ ~~~~~~~~~ Signed-off-by: Jiri Slaby <jslaby@suse.cz> Acked-by: Govindraj.R <govindraj.raja@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/tty/serial/serial_core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index 733fe8e73f0f..d6e724034492 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -1972,13 +1972,9 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport)
1972 struct tty_port *port = &state->port; 1972 struct tty_port *port = &state->port;
1973 struct device *tty_dev; 1973 struct device *tty_dev;
1974 struct uart_match match = {uport, drv}; 1974 struct uart_match match = {uport, drv};
1975 struct tty_struct *tty;
1976 1975
1977 mutex_lock(&port->mutex); 1976 mutex_lock(&port->mutex);
1978 1977
1979 /* Must be inside the mutex lock until we convert to tty_port */
1980 tty = port->tty;
1981
1982 tty_dev = device_find_child(uport->dev, &match, serial_match_port); 1978 tty_dev = device_find_child(uport->dev, &match, serial_match_port);
1983 if (device_may_wakeup(tty_dev)) { 1979 if (device_may_wakeup(tty_dev)) {
1984 if (!enable_irq_wake(uport->irq)) 1980 if (!enable_irq_wake(uport->irq))