Commit eef94f6b authored by Giedrius Statkevičius's avatar Giedrius Statkevičius Committed by Greg Kroah-Hartman

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: default avatarGiedrius Statkevičius <giedrius.statkevicius@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a74d8e21
...@@ -1760,12 +1760,6 @@ static int dgnc_tty_write(struct tty_struct *tty, ...@@ -1760,12 +1760,6 @@ static int dgnc_tty_write(struct tty_struct *tty,
ch->ch_flags &= ~CH_PRON; 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; n = count;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment