Loading drivers/char/n_tty.c +13 −16 Original line number Diff line number Diff line Loading @@ -47,8 +47,8 @@ #include <linux/bitops.h> #include <linux/audit.h> #include <linux/file.h> #include <linux/uaccess.h> #include <asm/uaccess.h> #include <asm/system.h> /* number of characters left in xmit buffer before select has we have room */ Loading Loading @@ -417,8 +417,7 @@ static ssize_t process_output_block(struct tty_struct *tty, mutex_lock(&tty->output_lock); space = tty_write_room(tty); if (!space) { if (!space) { mutex_unlock(&tty->output_lock); return 0; } Loading Loading @@ -621,7 +620,8 @@ static void process_echoes(struct tty_struct *tty) } else { int retval; if ((retval = do_output_char(c, tty, space)) < 0) retval = do_output_char(c, tty, space); if (retval < 0) break; space -= retval; cp += 1; Loading Loading @@ -675,8 +675,7 @@ static void add_echo_byte(unsigned char c, struct tty_struct *tty) * Since the buffer start position needs to be advanced, * be sure to step by a whole operation byte group. */ if (tty->echo_buf[tty->echo_pos] == ECHO_OP_START) { if (tty->echo_buf[tty->echo_pos] == ECHO_OP_START) { if (tty->echo_buf[(tty->echo_pos + 1) & (N_TTY_BUF_SIZE - 1)] == ECHO_OP_ERASE_TAB) { Loading Loading @@ -959,8 +958,7 @@ static void eraser(unsigned char c, struct tty_struct *tty) if (c == '\t') { after_tab = 1; break; } else if (iscntrl(c)) { } else if (iscntrl(c)) { if (L_ECHOCTL(tty)) num_chars += 2; } else if (!is_continuation(c, tty)) { Loading Loading @@ -1126,8 +1124,7 @@ static inline void n_tty_receive_char(struct tty_struct *tty, unsigned char c) if (c == START_CHAR(tty)) { start_tty(tty); process_echoes(tty); } else if (c == STOP_CHAR(tty)) } else if (c == STOP_CHAR(tty)) stop_tty(tty); } return; Loading Loading
drivers/char/n_tty.c +13 −16 Original line number Diff line number Diff line Loading @@ -47,8 +47,8 @@ #include <linux/bitops.h> #include <linux/audit.h> #include <linux/file.h> #include <linux/uaccess.h> #include <asm/uaccess.h> #include <asm/system.h> /* number of characters left in xmit buffer before select has we have room */ Loading Loading @@ -417,8 +417,7 @@ static ssize_t process_output_block(struct tty_struct *tty, mutex_lock(&tty->output_lock); space = tty_write_room(tty); if (!space) { if (!space) { mutex_unlock(&tty->output_lock); return 0; } Loading Loading @@ -621,7 +620,8 @@ static void process_echoes(struct tty_struct *tty) } else { int retval; if ((retval = do_output_char(c, tty, space)) < 0) retval = do_output_char(c, tty, space); if (retval < 0) break; space -= retval; cp += 1; Loading Loading @@ -675,8 +675,7 @@ static void add_echo_byte(unsigned char c, struct tty_struct *tty) * Since the buffer start position needs to be advanced, * be sure to step by a whole operation byte group. */ if (tty->echo_buf[tty->echo_pos] == ECHO_OP_START) { if (tty->echo_buf[tty->echo_pos] == ECHO_OP_START) { if (tty->echo_buf[(tty->echo_pos + 1) & (N_TTY_BUF_SIZE - 1)] == ECHO_OP_ERASE_TAB) { Loading Loading @@ -959,8 +958,7 @@ static void eraser(unsigned char c, struct tty_struct *tty) if (c == '\t') { after_tab = 1; break; } else if (iscntrl(c)) { } else if (iscntrl(c)) { if (L_ECHOCTL(tty)) num_chars += 2; } else if (!is_continuation(c, tty)) { Loading Loading @@ -1126,8 +1124,7 @@ static inline void n_tty_receive_char(struct tty_struct *tty, unsigned char c) if (c == START_CHAR(tty)) { start_tty(tty); process_echoes(tty); } else if (c == STOP_CHAR(tty)) } else if (c == STOP_CHAR(tty)) stop_tty(tty); } return; Loading