]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit099b12ea8b3fd89bd45363f6b92c2c12b59d3665
tree83062c0fa9301be49efcb2c0db157372c0ad8602
parent6df1ac686b8ae7889e52cef1123fe34db6e7a513
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