浏览代码

Merge master.kernel.org:/home/rmk/linux-2.6-serial

Linus Torvalds 19 年之前
父节点
当前提交
ed28f96ac1
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/serial/serial_core.c

+ 1 - 2
drivers/serial/serial_core.c

@@ -147,8 +147,7 @@ static int uart_startup(struct uart_state *state, int init_hw)
 	 * once we have successfully opened the port.  Also set
 	 * up the tty->alt_speed kludge
 	 */
-	if (info->tty)
-		set_bit(TTY_IO_ERROR, &info->tty->flags);
+	set_bit(TTY_IO_ERROR, &info->tty->flags);
 
 	if (port->type == PORT_UNKNOWN)
 		return 0;