Staging: dgnc: Remove return in void function
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Mon, 29 Sep 2014 08:37:00 +0000 (14:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 16:37:44 +0000 (09:37 -0700)
This fixes the following checkpatch.pl warnings:
WARNING: void function return statements are not generally useful

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c

index 3892da25066f323d257700a40739041820fc9006..dbf2b8b838a973823da37b33075effebd504acbb 100644 (file)
@@ -2198,8 +2198,6 @@ static void dgnc_tty_wait_until_sent(struct tty_struct *tty, int timeout)
                return;
 
        rc = bd->bd_ops->drain(tty, 0);
-
-       return;
 }
 
 
@@ -2237,7 +2235,6 @@ static void dgnc_tty_send_xchar(struct tty_struct *tty, char c)
        spin_unlock_irqrestore(&ch->ch_lock, flags);
 
        dev_dbg(tty->dev, "dgnc_tty_send_xchar finish\n");
-       return;
 }