From: Giedrius Statkevičius Date: Fri, 10 Apr 2015 14:48:55 +0000 (+0300) Subject: staging: dgnc: remove redundant check X-Git-Tag: v4.2-rc1~88^2~909 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eef94f6b7bff013d4efbc5d8ba1eefcd5a88734d;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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; /*