summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-eh.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-06-15 15:14:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-24 01:43:00 +0200
commita2f73be8ee36e48f11f89ab705beb3c587a2f320 (patch)
tree1612dd60ae378dfb1369001c2eed60265797f1c0 /drivers/ide/ide-eh.c
parentn_tty: Don't wrap input buffer indices at buffer size (diff)
downloadlinux-a2f73be8ee36e48f11f89ab705beb3c587a2f320.tar.xz
linux-a2f73be8ee36e48f11f89ab705beb3c587a2f320.zip
n_tty: Remove read_cnt
Storing the read_cnt creates an unnecessary shared variable between the single-producer (n_tty_receive_buf()) and the single-consumer (n_tty_read()). Compute read_cnt from head & tail instead of storing. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ide/ide-eh.c')
0 files changed, 0 insertions, 0 deletions