]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: dgnc: remove redundant check
authorGiedrius Statkevičius <giedrius.statkevicius@gmail.com>
Fri, 10 Apr 2015 14:48:55 +0000 (17:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 07:24:01 +0000 (09:24 +0200)
count doesn't get changed in between identical checks in
dgnc_tty_write() so remove the second check

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c

index cde55e001f8d40a6fe1d8f485c5526ebe55baa18..5c5c4b77425668b36a2b5e64fc7d1a2055c49a63 100644 (file)
@@ -1760,12 +1760,6 @@ static int dgnc_tty_write(struct tty_struct *tty,
                ch->ch_flags &= ~CH_PRON;
        }
 
-       /*
-        * If there is nothing left to copy, or I can't handle any more data, leave.
-        */
-       if (count <= 0)
-               goto exit_retry;
-
        n = count;
 
        /*