tty: buffers: Move hidden buffer index advance into outer loop
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 13 Jul 2015 00:50:50 +0000 (20:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2015 01:23:56 +0000 (18:23 -0700)
commitaf5554f957f8a7e28b9826a9c4ad2a7dedd15a78
tree0c6e36f1395a5d1507d040e6e454656522a692db
parent069f38b4983efaea92cbe7cc0cacc057af55739a
tty: buffers: Move hidden buffer index advance into outer loop

The advance of the 'read' buffer index belongs in the outer
flip buffer consume loop, with the other buffer index arithmetic.

No functional change.

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