From: Peter Hurley Date: Sat, 15 Jun 2013 13:14:22 +0000 (-0400) Subject: n_tty: Remove read_cnt X-Git-Tag: v3.12-rc1~182^2~212 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2f73be8ee36e48f11f89ab705beb3c587a2f320;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed