ACPI: processor: driver doesn't need to evaluate _PDC
[firefly-linux-kernel-4.4.55.git] / drivers / serial / ioc3_serial.c
index 85dc0410ac1a8d3f2bed7a08f8078f23b4de57cd..23ba6b40b3ac4ac9d62f12c0ff2b55c5cd403a5c 100644 (file)
@@ -1411,8 +1411,7 @@ static int receive_chars(struct uart_port *the_port)
        read_count = do_read(the_port, ch, MAX_CHARS);
        if (read_count > 0) {
                flip = 1;
-               read_room = tty_buffer_request_room(tty, read_count);
-               tty_insert_flip_string(tty, ch, read_room);
+               read_room = tty_insert_flip_string(tty, ch, read_count);
                the_port->icount.rx += read_count;
        }
        spin_unlock_irqrestore(&the_port->lock, pflags);