#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 */
 
        if (!space)
                return -1;
-       
+
        switch (c) {
        case '\n':
                if (O_ONLRET(tty))
        mutex_lock(&tty->output_lock);
 
        space = tty_write_room(tty);
-       if (!space)
-       {
+       if (!space) {
                mutex_unlock(&tty->output_lock);
                return 0;
        }
                        if (opp == buf_end)
                                opp -= N_TTY_BUF_SIZE;
                        op = *opp;
-                       
+
                        switch (op) {
                                unsigned int num_chars, num_bs;
 
                } 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;
                 * 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) {
        /* Set the high bit as a flag if num_chars is after a previous tab */
        if (after_tab)
                num_chars |= 0x80;
-       
+
        add_echo_byte(num_chars, tty);
 
        mutex_unlock(&tty->echo_lock);
                                        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)) {
        if (I_ISTRIP(tty))
                c &= 0x7f;
        if (I_IUCLC(tty) && L_IEXTEN(tty))
-               c=tolower(c);
+               c = tolower(c);
 
        if (tty->stopped && !tty->flow_stopped && I_IXON(tty) &&
            I_IXANY(tty) && c != START_CHAR(tty) && c != STOP_CHAR(tty) &&
                        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;
 {
        /* Write out any echoed characters that are still pending */
        process_echoes(tty);
-       
+
        if (tty->fasync) {
                set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);
                kill_fasync(&tty->fasync, SIGIO, POLL_OUT);
 
        /* Write out any echoed characters that are still pending */
        process_echoes(tty);
-       
+
        add_wait_queue(&tty->write_wait, &wait);
        while (1) {
                set_current_state(TASK_INTERRUPTIBLE);