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>
This commit is contained in:
Giedrius Statkevičius 2015-04-10 17:48:55 +03:00 committed by Greg Kroah-Hartman
parent a74d8e2167
commit eef94f6b7b
1 changed files with 0 additions and 6 deletions

View 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;
/*