Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185205
b: refs/heads/master
c: 4165fe4
h: refs/heads/master
i:
  185203: 97f69c2
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 81c7ea3 commit f036547
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 638b9648ab51c9c549ff5735d3de519ef6199df3
refs/heads/master: 4165fe4ef7305609a96c7f248cefb9c414d0ede5
2 changes: 0 additions & 2 deletions trunk/drivers/char/nozomi.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,6 @@ static int receive_data(enum port_type index, struct nozomi *dc)
goto put;
}

tty_buffer_request_room(tty, size);

while (size > 0) {
read_mem32((u32 *) buf, addr + offset, RECEIVE_BUF_MAX);

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/char/serial167.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,7 @@ static irqreturn_t cd2401_rx_interrupt(int irq, void *dev_id)
info->mon.char_max = char_count;
info->mon.char_last = char_count;
#endif
len = tty_buffer_request_room(tty, char_count);
while (len--) {
while (char_count--) {
data = base_addr[CyRDR];
tty_insert_flip_char(tty, data, TTY_NORMAL);
#ifdef CYCLOM_16Y_HACK
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/char/specialix.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,6 @@ static void sx_receive(struct specialix_board *bp)
dprintk(SX_DEBUG_RX, "port: %p: count: %d\n", port, count);
port->hits[count > 8 ? 9 : count]++;

tty_buffer_request_room(tty, count);

while (count--)
tty_insert_flip_char(tty, sx_in(bp, CD186x_RDR), TTY_NORMAL);
tty_flip_buffer_push(tty);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/serial/icom.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,6 @@ static void recv_interrupt(u16 port_int_reg, struct icom_port *icom_port)
trace(icom_port, "FID_STATUS", status);
count = cpu_to_le16(icom_port->statStg->rcv[rcv_buff].leLength);

count = tty_buffer_request_room(tty, count);
trace(icom_port, "RCV_COUNT", count);

trace(icom_port, "REAL_COUNT", count);
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/serial/ioc3_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f036547

Please sign in to comment.