]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] janitor: serial/tx3912: remove unneeded verify_area calls
authorRandy Dunlap <rddunlap@osdl.org>
Fri, 26 Sep 2003 01:46:43 +0000 (18:46 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 26 Sep 2003 01:46:43 +0000 (18:46 -0700)
From: Domen Puncer <domen@coderock.org>

drivers/char/serial_tx3912.c

index 8be447a76a3d048526a0883bb4cedc2566a1e426..39717ed687ca9784e4bbe1251d4f854f4dd8b41d 100644 (file)
@@ -613,9 +613,7 @@ static int rs_ioctl (struct tty_struct * tty, struct file * filp,
                              (unsigned int *) arg);
                break;
        case TIOCSSOFTCAR:
-               if ((rc = verify_area(VERIFY_READ, (void *) arg,
-                                     sizeof(int))) == 0) {
-                       get_user(ival, (unsigned int *) arg);
+               if ((rc = get_user(ival, (unsigned int *) arg)) == 0) {
                        tty->termios->c_cflag =
                                (tty->termios->c_cflag & ~CLOCAL) |
                                (ival ? CLOCAL : 0);