m68k/amiserial: fix fallout of tty break handling rework
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 6 Aug 2008 20:19:39 +0000 (22:19 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Aug 2008 20:24:41 +0000 (13:24 -0700)
commit 9e98966c7bb94355689478bc84cc3e0c190f977e (tty: rework break handling)
forgot to update one exit point of rs_break() in the Amiga serial driver.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/amiserial.c

index 3530ff417a5165ef9b484d74295a3211373ed8d0..6e763e3f5a815565d57e06ab26641c4a6979856d 100644 (file)
@@ -1254,7 +1254,7 @@ static int rs_break(struct tty_struct *tty, int break_state)
        unsigned long flags;
 
        if (serial_paranoia_check(info, tty->name, "rs_break"))
-               return;
+               return -EINVAL;
 
        local_irq_save(flags);
        if (break_state == -1)