summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorGiedrius Statkevičius <giedrius.statkevicius@gmail.com>2015-04-10 17:48:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-08 09:24:01 +0200
commiteef94f6b7bff013d4efbc5d8ba1eefcd5a88734d (patch)
tree507910320caa6f0c62be9c7dbe8b655c3bb82e93 /drivers/staging/dgnc
parenta74d8e21679cdb2b087ff386c34e874af8bac77a (diff)
downloadlinux-eef94f6b7bff013d4efbc5d8ba1eefcd5a88734d.tar.bz2
staging: dgnc: remove redundant check
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>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_tty.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index cde55e001f8d..5c5c4b774256 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -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;
/*