n_tty: Replace echo_cnt with computed value
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 14:04:23 +0000 (10:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 00:02:21 +0000 (17:02 -0700)
commit862eeffef1b465a12412f4ae6e5987ae292c968d
tree4fc9ae42e841d6402906a12bf1dbd1594c179b3a
parentaddaebccf63a8c9f7c7a62ce1ceb9da4307c5a1c
n_tty: Replace echo_cnt with computed value

Prepare for lockless echo_buf handling; compute current byte count
of echo_buf from head and tail indices.

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