]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/tty/serial/serial_core.c
tiocmget: kill off the passing of the struct file
[mv-sheeva.git] / drivers / tty / serial / serial_core.c
index 20563c509b2191a8e307d51430e8daef48371dbf..53e490e475602866efb67e73f1ac01a4309e423f 100644 (file)
@@ -905,7 +905,7 @@ static int uart_get_lsr_info(struct tty_struct *tty,
        return put_user(result, value);
 }
 
-static int uart_tiocmget(struct tty_struct *tty, struct file *file)
+static int uart_tiocmget(struct tty_struct *tty)
 {
        struct uart_state *state = tty->driver_data;
        struct tty_port *port = &state->port;
@@ -913,10 +913,8 @@ static int uart_tiocmget(struct tty_struct *tty, struct file *file)
        int result = -EIO;
 
        mutex_lock(&port->mutex);
-       if ((!file || !tty_hung_up_p(file)) &&
-           !(tty->flags & (1 << TTY_IO_ERROR))) {
+       if (!(tty->flags & (1 << TTY_IO_ERROR))) {
                result = uport->mctrl;
-
                spin_lock_irq(&uport->lock);
                result |= uport->ops->get_mctrl(uport);
                spin_unlock_irq(&uport->lock);