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:
parent
a74d8e2167
commit
eef94f6b7b
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue