diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-03-20 11:58:09 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-03-20 11:58:09 -0500 |
| commit | fd4a0b92db6a57cba8d03efbe1cebf91f9124ce0 (patch) | |
| tree | 5886a08bfa1132058b06074f4666a36dc5ddd2a1 /drivers/serial/ioc4_serial.c | |
| parent | 88274815f7477dc7550439413ab87c5ce4c5a623 (diff) | |
| parent | 7705a8792b0fc82fd7d4dd923724606bbfd9fb20 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'drivers/serial/ioc4_serial.c')
| -rw-r--r-- | drivers/serial/ioc4_serial.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/serial/ioc4_serial.c b/drivers/serial/ioc4_serial.c index f3763d2ccb86..a37579ce6d76 100644 --- a/drivers/serial/ioc4_serial.c +++ b/drivers/serial/ioc4_serial.c | |||
| @@ -2301,7 +2301,6 @@ static void receive_chars(struct uart_port *the_port) | |||
| 2301 | int read_count, request_count = IOC4_MAX_CHARS; | 2301 | int read_count, request_count = IOC4_MAX_CHARS; |
| 2302 | struct uart_icount *icount; | 2302 | struct uart_icount *icount; |
| 2303 | struct uart_info *info = the_port->info; | 2303 | struct uart_info *info = the_port->info; |
| 2304 | int flip = 0; | ||
| 2305 | unsigned long pflags; | 2304 | unsigned long pflags; |
| 2306 | 2305 | ||
| 2307 | /* Make sure all the pointers are "good" ones */ | 2306 | /* Make sure all the pointers are "good" ones */ |
| @@ -2313,7 +2312,7 @@ static void receive_chars(struct uart_port *the_port) | |||
| 2313 | spin_lock_irqsave(&the_port->lock, pflags); | 2312 | spin_lock_irqsave(&the_port->lock, pflags); |
| 2314 | tty = info->tty; | 2313 | tty = info->tty; |
| 2315 | 2314 | ||
| 2316 | request_count = tty_buffer_request_room(tty, IOC4_MAX_CHARS - 2); | 2315 | request_count = tty_buffer_request_room(tty, IOC4_MAX_CHARS); |
| 2317 | 2316 | ||
| 2318 | if (request_count > 0) { | 2317 | if (request_count > 0) { |
| 2319 | icount = &the_port->icount; | 2318 | icount = &the_port->icount; |
| @@ -2326,8 +2325,7 @@ static void receive_chars(struct uart_port *the_port) | |||
| 2326 | 2325 | ||
| 2327 | spin_unlock_irqrestore(&the_port->lock, pflags); | 2326 | spin_unlock_irqrestore(&the_port->lock, pflags); |
| 2328 | 2327 | ||
| 2329 | if (flip) | 2328 | tty_flip_buffer_push(tty); |
| 2330 | tty_flip_buffer_push(tty); | ||
| 2331 | } | 2329 | } |
| 2332 | 2330 | ||
| 2333 | /** | 2331 | /** |
