summaryrefslogtreecommitdiff
path: root/drivers/net/eql.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-06-15 10:04:22 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 17:02:21 -0700
commitaddaebccf63a8c9f7c7a62ce1ceb9da4307c5a1c (patch)
treedfce21ff8b94fab6fbe53da5046d4c56ca072f32 /drivers/net/eql.c
parentae56f3304107f70e26a389d845db76d6b949c114 (diff)
n_tty: Use separate head and tail indices for echo_buf
Instead of using a single index to track the current echo_buf position, use a head index when adding to the buffer and a tail index when consuming from the buffer. Allow these head and tail indices to wrap at max representable value; perform modulo reduction via helper functions when accessing the buffer. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/eql.c')
0 files changed, 0 insertions, 0 deletions