n_tty: Eliminate counter in __process_echoes
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 14:04:28 +0000 (10:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 00:02:22 +0000 (17:02 -0700)
commit29c7c5ca36d9c132cf9c37a09bc43626e790fb4c
tree83062c0fa9301be49efcb2c0db157372c0ad8602
parentbc5b1ec5860a9bf52842be4a3a9d96e19f06c11d
n_tty: Eliminate counter in __process_echoes

Since neither echo_commit nor echo_tail can change for the duration
of __process_echoes loop, substitute index comparison for the
snapshot counter.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c