diff options
Diffstat (limited to 'drivers/char/esp.c')
-rw-r--r-- | drivers/char/esp.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/char/esp.c b/drivers/char/esp.c index d1bfbaa2aa02..74cd5118af57 100644 --- a/drivers/char/esp.c +++ b/drivers/char/esp.c | |||
@@ -1121,8 +1121,6 @@ static void change_speed(struct esp_struct *info) | |||
1121 | /* | 1121 | /* |
1122 | * Set up parity check flag | 1122 | * Set up parity check flag |
1123 | */ | 1123 | */ |
1124 | #define RELEVANT_IFLAG(iflag) (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK)) | ||
1125 | |||
1126 | info->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; | 1124 | info->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; |
1127 | if (I_INPCK(info->tty)) | 1125 | if (I_INPCK(info->tty)) |
1128 | info->read_status_mask |= UART_LSR_FE | UART_LSR_PE; | 1126 | info->read_status_mask |= UART_LSR_FE | UART_LSR_PE; |
@@ -1920,11 +1918,6 @@ static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios) | |||
1920 | struct esp_struct *info = (struct esp_struct *)tty->driver_data; | 1918 | struct esp_struct *info = (struct esp_struct *)tty->driver_data; |
1921 | unsigned long flags; | 1919 | unsigned long flags; |
1922 | 1920 | ||
1923 | if ( (tty->termios->c_cflag == old_termios->c_cflag) | ||
1924 | && ( RELEVANT_IFLAG(tty->termios->c_iflag) | ||
1925 | == RELEVANT_IFLAG(old_termios->c_iflag))) | ||
1926 | return; | ||
1927 | |||
1928 | change_speed(info); | 1921 | change_speed(info); |
1929 | 1922 | ||
1930 | spin_lock_irqsave(&info->lock, flags); | 1923 | spin_lock_irqsave(&info->lock, flags); |