]> err.no Git - linux-2.6/commitdiff
m68k: serial167 missing return value in cy_put_char()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 5 May 2008 19:15:48 +0000 (21:15 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 May 2008 19:37:02 +0000 (12:37 -0700)
    commit a5b08c66194fba02a865b397579b7204688bcb1e
    Author: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Date:   Wed Apr 30 00:54:05 2008 -0700

    serial167: switch to int put_char method

missed one case when adding return values.

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

index fd2db07a50fce9bf39e2bcaf0060bc7fc71f8a09..3b23270eaa65385f56a2cef7652aeb2ccea77055 100644 (file)
@@ -1073,7 +1073,7 @@ static int cy_put_char(struct tty_struct *tty, unsigned char ch)
                return 0;
 
        if (!info->xmit_buf)
-               return;
+               return 0;
 
        local_irq_save(flags);
        if (info->xmit_cnt >= PAGE_SIZE - 1) {